All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
risc::sg::MappedVariable Struct Reference

This is a helper class to describe a variable in the design through the symbol and the instance id. More...

#include <mapped_variable.h>

Collaboration diagram for risc::sg::MappedVariable:
Collaboration graph

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
 

Detailed Description

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

Constructor & Destructor Documentation

risc::sg::MappedVariable::MappedVariable ( SgVariableSymbol *  symbol,
int  instance_id 
)
risc::sg::MappedVariable::MappedVariable ( )

Member Function Documentation

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)

Member Data Documentation

int risc::sg::MappedVariable::instance_id_
int const risc::sg::MappedVariable::InvalidVariable = -2
static
SgVariableSymbol* risc::sg::MappedVariable::symbol_

The documentation for this struct was generated from the following files: