This is a helper class to describe a variable in the design through the symbol and the instance id. More...
#include <mapped_variable.h>

Public Member Functions | |
| MappedVariable (SgVariableSymbol *symbol, int instance_id) | |
| MappedVariable () | |
| bool | is_valid () |
| Checks if the MappedVariable is valid. More... | |
| bool | operator== (const MappedVariable &ohs) |
| bool | operator!= (const MappedVariable &ohs) |
Public Attributes | |
| SgVariableSymbol * | symbol_ |
| int | instance_id_ |
Static Public Attributes | |
| static int const | InvalidVariable = -2 |
This is a helper class to describe a variable in the design through the symbol and the instance id.
instance_id values 0 ... n instance id -1 global variable -2 invalid variable
| risc::sg::MappedVariable::MappedVariable | ( | SgVariableSymbol * | symbol, |
| int | instance_id | ||
| ) |
| risc::sg::MappedVariable::MappedVariable | ( | ) |
| risc::sg::MappedVariable::is_valid | ( | ) |
Checks if the MappedVariable is valid.
| bool risc::sg::MappedVariable::operator!= | ( | const MappedVariable & | ohs | ) |
| bool risc::sg::MappedVariable::operator== | ( | const MappedVariable & | ohs | ) |
| int risc::sg::MappedVariable::instance_id_ |
|
static |
| SgVariableSymbol* risc::sg::MappedVariable::symbol_ |
1.8.5