HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VOP_CodeVarMapperContext Class Reference

#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_CodeVarMapperContextfindOrCreateChildContext (VOP_Fetch *fetch_vop)
 
VOP_CodeVarMapperContextfindChildContext (VOP_Fetch *fetch_vop) const
 
VOP_CodeVarMapperContextgetParent () const
 Return a pointer to the parent context. More...
 
VOP_Fetch * getFetchVOP () const
 

Detailed Description

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 34 of file VOP_CodeVarMapper.h.

Constructor & Destructor Documentation

VOP_CodeVarMapperContext::VOP_CodeVarMapperContext ( VOP_CodeVarMapperContext parent = NULL,
VOP_Fetch *  fetch_vop = NULL 
)

Constructor.

VOP_CodeVarMapperContext::~VOP_CodeVarMapperContext ( )

Destructor.

Member Function Documentation

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.

VOP_Fetch* VOP_CodeVarMapperContext::getFetchVOP ( ) const
inline

Return a pointer to the Fetch VOP which was responsible for the creation of this context.

Definition at line 57 of file VOP_CodeVarMapper.h.

VOP_CodeVarMapperContext* VOP_CodeVarMapperContext::getParent ( ) const
inline

Return a pointer to the parent context.

Definition at line 53 of file VOP_CodeVarMapper.h.


The documentation for this class was generated from the following file: