8 #ifndef __VOP_CodeVarMapper_h__
9 #define __VOP_CodeVarMapper_h__
41 VOP_Fetch *fetch_vop=NULL);
70 VOP_Fetch *myFetchVOP;
81 void addOutputVariable(
const char *codevar,
86 const char *getOutputVariableCodeName(
int index)
const;
87 const char *getOutputVariableName(
int index)
const;
88 const VOP_TypeInfo &getOutputVariableTypeInfo(
int index)
const;
89 bool getDeclareOutputVariable(
int index)
const;
90 int getNumEntries()
const;
99 myOutputVariableTypeInfos;
112 using KeyType = std::pair<VOP_Node *, VOP_CodeVarMapperContext *>;
119 SYShashCombine(h, s.first);
120 SYShashCombine(h, s.second);
134 int getNumEntries()
const;
143 int getNumExtraTypes()
const;
174 : myVop(vop), myVarTable(varTable),
175 myLocalVarTables(localVarTables),
176 myLocalVarTable(localVarTable), myVarMapper(varMapper),
177 myVarMapperEntry(varMapperEntry), myDoingOuterCode(true),
178 myCodegenContext(codegen_context),
179 myCodeVarMapperContext(varmap_context),
180 myFunctionSubnet(function_subnet),
181 myIsConnectedMap(is_connected_map)
VOP_CodeVarMapperContext * myCodeVarMapperContext
VOP_CodeVarMapperContext * findOrCreateChildContext(VOP_Fetch *fetch_vop)
VOP_Fetch * getFetchVOP() const
UT_SymbolMap< UT_StringHolder > VOP_VariableMap
const VOP_CodeGenContext & myCodegenContext
VOP_CodeVarLookupData(VOP_Node *vop, UT_StringSet &varTable, VOP_NodeVarMapsTable &localVarTables, VOP_VariableMap &localVarTable, VOP_CodeVarMapper &varMapper, VOP_CodeVarMapperEntry *varMapperEntry, const VOP_CodeGenContext &codegen_context, VOP_CodeVarMapperContext *varmap_context, VOP_Node *function_subnet=NULL, UT_SortedStringMap< UT_String > *is_connected_map=NULL)
std::size_t SYS_HashType
Define the type for hash values.
UT_Map< const VOP_Node *, VOP_VariableMap * > VOP_NodeVarMapsTable
UT_StringHolder myVariableString
std::pair< VOP_Node *, VOP_CodeVarMapperContext * > KeyType
VOP_NodeVarMapsTable & myLocalVarTables
VOP_CodeVarMapperContext * getParent() const
Return a pointer to the parent context.
VOP_CodeVarMapperContext * findChildContext(VOP_Fetch *fetch_vop) const
VOP_Node * myFunctionSubnet
VOP_VariableMap & myLocalVarTable
SYS_HashType operator()(KeyType const &s) const
GLfloat GLfloat GLfloat GLfloat h
VOP_CodeVarMapper & myVarMapper
VOP_CodeVarMapperEntry * myVarMapperEntry
UT_StringSet & myVarTable
UT_SortedStringMap< UT_String > * myIsConnectedMap
~VOP_CodeVarMapperContext()
Destructor.
VOP_CodeVarMapperContext(VOP_CodeVarMapperContext *parent=NULL, VOP_Fetch *fetch_vop=NULL)
Constructor.
UT_SymbolMap< VOP_VariableMap * > VOP_OpVarMapsTable