|
Blender V5.3
|
#include <symbol_template.hh>
Public Member Functions | |
| SymbolTemplate (ast::TemplateDecl temp) | |
| bool | is_adl_possible () const |
| ResultPair< T *, string > | lookup_inst (ast::TemplateParamList list, const SymbolScope &scope, const SymbolTable &table) const |
| Result< T * > | lookup_adl (const SymbolTable &symbols, ast::FuncParamList list, const SymbolScope &scope) const |
Public Attributes | |
| ast::TemplateDecl | decl |
| unordered_map< string, T * > | instances |
| vector< int > | temp_arg_index_in_fn_arg |
Templated symbol additional storage. Contains instances and reference to the declaration.
Definition at line 28 of file symbol_template.hh.
| bsl::SymbolTemplate< T >::SymbolTemplate | ( | ast::TemplateDecl | temp | ) |
Definition at line 41 of file symbol_template.cc.
References blender::gpu::shader::parser::ast::FuncDecl::arguments(), blender::gpu::shader::parser::ast::TemplateDecl::arguments(), blender::gpu::shader::parser::ast::Node::child_count(), blender::gpu::shader::parser::ast::Node::children_of_type(), blender::gpu::shader::parser::ast::TemplateDecl::decl(), decl, if(), blender::gpu::shader::parser::ast::TemplateDecl::is_class(), and temp_arg_index_in_fn_arg.
|
inline |
Definition at line 39 of file symbol_template.hh.
Referenced by lookup_adl().
| Result< T * > bsl::SymbolTemplate< T >::lookup_adl | ( | const SymbolTable & | symbols, |
| ast::FuncParamList | list, | ||
| const SymbolScope & | scope ) const |
Definition at line 100 of file symbol_template.cc.
References bsl::AstNodeException::AstNodeException(), bsl::CompilerErrorADLOnTypesNotAllowed, bsl::SymbolTable::err_symbol, instances, is_adl_possible(), bsl::SymbolScope::lookup_class(), bsl::SymbolScope::lookup_function(), bsl::SymbolTable::mangle_identifier(), bsl::SymbolTable::root, str, bsl::TemplateMissingExplicitArguments, and bsl::TemplateMissingInstantiation.
| ResultPair< T *, string > bsl::SymbolTemplate< T >::lookup_inst | ( | ast::TemplateParamList | list, |
| const SymbolScope & | scope, | ||
| const SymbolTable & | table ) const |
Definition at line 17 of file symbol_template.cc.
References decl, bsl::SymbolTable::err_symbol, instances, bsl::SymbolScope::lookup_class(), bsl::SymbolScope::lookup_function(), bsl::SymbolTable::mangle_identifier(), bsl::SymbolTable::root, str, and bsl::TemplateMissingInstantiation.
| ast::TemplateDecl bsl::SymbolTemplate< T >::decl |
Definition at line 30 of file symbol_template.hh.
Referenced by lookup_inst(), and SymbolTemplate().
| unordered_map<string, T *> bsl::SymbolTemplate< T >::instances |
Definition at line 32 of file symbol_template.hh.
Referenced by lookup_adl(), lookup_inst(), and bsl::SymbolParser::parse_template_spec().
| vector<int> bsl::SymbolTemplate< T >::temp_arg_index_in_fn_arg |
Definition at line 35 of file symbol_template.hh.
Referenced by bsl::SymbolTable::mangle_identifier(), and SymbolTemplate().