HDK
|
#include <VOP_CodeVarMapper.h>
Public Member Functions | |
VOP_CodeVarMapperContext (VOP_CodeVarMapperContext *parent=NULL, VOP_Fetch *fetch_vop=NULL) | |
Constructor. More... | |
~VOP_CodeVarMapperContext () | |
Destructor. More... | |
VOP_CodeVarMapperContext * | findOrCreateChildContext (VOP_Fetch *fetch_vop) |
VOP_CodeVarMapperContext * | findChildContext (VOP_Fetch *fetch_vop) const |
VOP_CodeVarMapperContext * | getParent () const |
Return a pointer to the parent context. More... | |
VOP_Fetch * | getFetchVOP () const |
Simple class used to divide variable mappings into different contexts. With the introduction of the Fetch VOP, a node can produce code and variables multiple times. So we need contexts to separate mappings from the same node from trampling over each other.
Definition at line 36 of file VOP_CodeVarMapper.h.
VOP_CodeVarMapperContext::VOP_CodeVarMapperContext | ( | VOP_CodeVarMapperContext * | parent = NULL , |
VOP_Fetch * | fetch_vop = NULL |
||
) |
Constructor.
VOP_CodeVarMapperContext::~VOP_CodeVarMapperContext | ( | ) |
Destructor.
VOP_CodeVarMapperContext* VOP_CodeVarMapperContext::findChildContext | ( | VOP_Fetch * | fetch_vop | ) | const |
Return the child context which is associated to the given key. Return NULL if no such context exists.
VOP_CodeVarMapperContext* VOP_CodeVarMapperContext::findOrCreateChildContext | ( | VOP_Fetch * | fetch_vop | ) |
Return the child context which is associated to the given key. If no such child context exists, then create one.
|
inline |
Return a pointer to the Fetch VOP which was responsible for the creation of this context.
Definition at line 59 of file VOP_CodeVarMapper.h.
|
inline |
Return a pointer to the parent context.
Definition at line 55 of file VOP_CodeVarMapper.h.