ROSE 0.11.145.147
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
varID Class Reference

Description

Definition at line 62 of file variables.h.

Inheritance diagram for varID:
Inheritance graph
[legend]
Collaboration diagram for varID:
Collaboration graph
[legend]

Public Member Functions

 varID (std::string name)
 
 varID (SgNode *n)
 
 varID (SgInitializedName *name)
 
 varID (const SgExpression *exp)
 
varIDoperator= (const varID &)=default
 
 varID (const varID &that)
 
bool init (const varID &that)
 
bool init (SgNode *n)
 
bool init (const SgExpression *exp)
 
bool init (SgInitializedName *name)
 
void operator= (const variable &that)
 
bool collectDotComponents (const SgDotExp *dotExp)
 
SgScopeStatementgetScope () const
 
SgExpressiontoSgExpression () const
 
void add (SgInitializedName *name)
 
bool addAnnotation (const std::string &aName, void *annot)
 
bool remAnnotation (const std::string &aName)
 
bool remAllAnnotations ()
 
bool swapAnnotations (const std::string &fromAnnotName, void *fromAnnotVal, const std::string &toAnnotName, void *toAnnotVal)
 
void * getAnnotation (const std::string &aName) const
 
bool hasAnnotation (const std::string &aName) const
 
bool hasAnyAnnotation (const std::set< std::string > &aNames) const
 
bool hasAllAnnotations (const std::set< std::string > &aNames) const
 
int numAnnotations () const
 
const std::map< std::string, void * > & getAnnotations () const
 
bool equal (const varID &two) const
 
bool lessThan (const varID &two) const
 
bool operator== (const variable &that) const
 
bool operator!= (const varID &that) const
 
bool operator< (const variable &that) const
 
bool operator> (const varID &that) const
 
bool operator<= (const varID &that) const
 
bool operator>= (const varID &that) const
 
std::string str () const
 
std::string str (bool noAnnot) const
 
std::string str_linenum () const
 
std::string str_ptr () const
 
bool isArrayType () const
 
bool isCompilerGenerated () const
 
bool isGlobal () const
 
long getID () const
 

Static Public Member Functions

static bool isValidVarExp (const SgNode *exp)
 
static bool isValidVarExp (const SgExpression *exp)
 
static bool isValidVarExp (const SgInitializedName *exp)
 

Public Attributes

std::vector< SgInitializedName * > components
 
std::map< std::string, void * > annotations
 
SgTypevarType
 
std::string name
 

Protected Member Functions

SgExpressiontoSgExpression_rec (std::vector< SgInitializedName * >::const_iterator rest) const
 

Static Protected Member Functions

static bool isValidVarExp_rec (const SgExpression *exp)
 

Constructor & Destructor Documentation

◆ varID() [1/5]

varID::varID ( std::string  name)
inline

Definition at line 74 of file variables.h.

◆ varID() [2/5]

varID::varID ( SgNode n)
inline

Definition at line 82 of file variables.h.

◆ varID() [3/5]

varID::varID ( SgInitializedName name)
inline

Definition at line 89 of file variables.h.

◆ varID() [4/5]

varID::varID ( const SgExpression exp)
inline

Definition at line 97 of file variables.h.

◆ varID() [5/5]

varID::varID ( const varID that)
inline

Definition at line 105 of file variables.h.

Member Function Documentation

◆ getScope()

SgScopeStatement * varID::getScope ( ) const
virtual

Implements variable.

◆ toSgExpression()

SgExpression * varID::toSgExpression ( ) const
virtual

Implements variable.

◆ operator==()

bool varID::operator== ( const variable that) const
virtual

Implements variable.

◆ operator<()

bool varID::operator< ( const variable that) const
virtual

Implements variable.

◆ str()

std::string varID::str ( ) const
virtual

Implements variable.

◆ isGlobal()

bool varID::isGlobal ( ) const
virtual

Implements variable.

Member Data Documentation

◆ components

std::vector<SgInitializedName *> varID::components

Definition at line 65 of file variables.h.

◆ annotations

std::map<std::string, void*> varID::annotations

Definition at line 67 of file variables.h.

◆ varType

SgType* varID::varType

Definition at line 68 of file variables.h.

◆ name

std::string varID::name

Definition at line 70 of file variables.h.


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