HDK
|
#include <VOP_CodeVarMapper.h>
Classes | |
struct | KeyHasher |
Public Types | |
using | KeyType = std::pair< VOP_Node *, VOP_CodeVarMapperContext * > |
Public Member Functions | |
VOP_CodeVarMapper () | |
~VOP_CodeVarMapper () | |
VOP_CodeVarMapperEntry * | findOrAddEntry (VOP_Node *node, VOP_CodeVarMapperContext *context) |
VOP_CodeVarMapperEntry * | findEntry (VOP_Node *node, VOP_CodeVarMapperContext *context) const |
const VOP_CodeVarMapperEntry * | getEntry (int idx) const |
int | getNumEntries () const |
void | addExtraType (const VOP_TypeInfo &type_info) |
const VOP_TypeInfo & | getExtraType (int idx) const |
int | getNumExtraTypes () const |
Container class that keeps track of all var mapper entries, that is infos about output varialbe names for each vop node in a given mapper context.
Definition at line 109 of file VOP_CodeVarMapper.h.
using VOP_CodeVarMapper::KeyType = std::pair<VOP_Node *, VOP_CodeVarMapperContext *> |
Definition at line 112 of file VOP_CodeVarMapper.h.
VOP_CodeVarMapper::VOP_CodeVarMapper | ( | ) |
VOP_CodeVarMapper::~VOP_CodeVarMapper | ( | ) |
void VOP_CodeVarMapper::addExtraType | ( | const VOP_TypeInfo & | type_info | ) |
Some nodes use temporary variables with custom types, and types are inspected and automatically defined (if necessary) when declaring variables for the outputs. If no output is of that custom type, the type won't be defined. So, VOPs can use extra types list to indicate which custom types need definition in the generated code.
VOP_CodeVarMapperEntry* VOP_CodeVarMapper::findEntry | ( | VOP_Node * | node, |
VOP_CodeVarMapperContext * | context | ||
) | const |
VOP_CodeVarMapperEntry* VOP_CodeVarMapper::findOrAddEntry | ( | VOP_Node * | node, |
VOP_CodeVarMapperContext * | context | ||
) |
const VOP_CodeVarMapperEntry* VOP_CodeVarMapper::getEntry | ( | int | idx | ) | const |
const VOP_TypeInfo& VOP_CodeVarMapper::getExtraType | ( | int | idx | ) | const |
int VOP_CodeVarMapper::getNumEntries | ( | ) | const |
int VOP_CodeVarMapper::getNumExtraTypes | ( | ) | const |