VOP_CodeVarMapperContext Class Reference

#include <VOP_CodeVarMapper.h>

List of all members.

Public Member Functions

 VOP_CodeVarMapperContext (VOP_CodeVarMapperContext *parent=NULL, VOP_Fetch *fetch_vop=NULL)
 Constructor.
 ~VOP_CodeVarMapperContext ()
 Destructor.
VOP_CodeVarMapperContextfindOrCreateChildContext (VOP_Fetch *fetch_vop)
VOP_CodeVarMapperContextfindChildContext (VOP_Fetch *fetch_vop) const
VOP_CodeVarMapperContextgetParent () const
 Return a pointer to the parent context.
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.
Examples:

VOP/VOP_Switch.C, and VOP/VOP_Switch.h.

Definition at line 32 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 55 of file VOP_CodeVarMapper.h.

VOP_CodeVarMapperContext* VOP_CodeVarMapperContext::getParent (  )  const [inline]

Return a pointer to the parent context.

Definition at line 51 of file VOP_CodeVarMapper.h.


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

Generated on Thu Jan 31 00:34:18 2013 for HDK by  doxygen 1.5.9