ROSE
0.9.6a
|
#include <variables.h>
Public Member Functions | |
varID () | |
varID (std::string name) | |
varID (SgNode *n) | |
varID (SgInitializedName *name) | |
varID (const SgExpression *exp) | |
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) |
SgScopeStatement * | getScope () const |
SgExpression * | toSgExpression () 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 |
Public Member Functions inherited from variable | |
virtual | ~variable () |
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 |
SgType * | varType |
std::string | name |
Protected Member Functions | |
SgExpression * | toSgExpression_rec (std::vector< SgInitializedName * >::const_iterator rest) const |
Static Protected Member Functions | |
static bool | isValidVarExp_rec (const SgExpression *exp) |
Private Member Functions | |
void | genID () |
Private Attributes | |
long | ID |
Static Private Attributes | |
static long | globalMaxID |
Definition at line 59 of file variables.h.
|
inline |
Definition at line 69 of file variables.h.
|
inline |
Definition at line 71 of file variables.h.
|
inline |
Definition at line 79 of file variables.h.
|
inline |
Definition at line 86 of file variables.h.
|
inline |
Definition at line 94 of file variables.h.
|
inline |
Definition at line 101 of file variables.h.
References init().
bool varID::init | ( | SgNode * | n) |
bool varID::init | ( | const SgExpression * | exp) |
bool varID::init | ( | SgInitializedName * | name) |
void varID::operator= | ( | const variable & | that) |
bool varID::collectDotComponents | ( | const SgDotExp * | dotExp) |
|
virtual |
Implements variable.
|
virtual |
Implements variable.
|
protected |
|
static |
|
static |
|
static |
|
staticprotected |
void varID::add | ( | SgInitializedName * | name) |
bool varID::addAnnotation | ( | const std::string & | aName, |
void * | annot | ||
) |
bool varID::remAnnotation | ( | const std::string & | aName) |
bool varID::remAllAnnotations | ( | ) |
bool varID::swapAnnotations | ( | const std::string & | fromAnnotName, |
void * | fromAnnotVal, | ||
const std::string & | toAnnotName, | ||
void * | toAnnotVal | ||
) |
void* varID::getAnnotation | ( | const std::string & | aName) | const |
bool varID::hasAnnotation | ( | const std::string & | aName) | const |
bool varID::hasAnyAnnotation | ( | const std::set< std::string > & | aNames) | const |
bool varID::hasAllAnnotations | ( | const std::set< std::string > & | aNames) | const |
int varID::numAnnotations | ( | ) | const |
const std::map<std::string, void*>& varID::getAnnotations | ( | ) | const |
bool varID::equal | ( | const varID & | two) | const |
bool varID::lessThan | ( | const varID & | two) | const |
bool varID::operator!= | ( | const varID & | that) | const |
bool varID::operator> | ( | const varID & | that) | const |
bool varID::operator<= | ( | const varID & | that) | const |
bool varID::operator>= | ( | const varID & | that) | const |
|
virtual |
Implements variable.
std::string varID::str | ( | bool | noAnnot) | const |
std::string varID::str_linenum | ( | ) | const |
std::string varID::str_ptr | ( | ) | const |
bool varID::isArrayType | ( | ) | const |
bool varID::isCompilerGenerated | ( | ) | const |
|
virtual |
Implements variable.
|
private |
Referenced by varID().
long varID::getID | ( | ) | const |
std::vector<SgInitializedName *> varID::components |
Definition at line 62 of file variables.h.
std::map<std::string, void*> varID::annotations |
Definition at line 64 of file variables.h.
SgType* varID::varType |
Definition at line 65 of file variables.h.
Referenced by varID().
std::string varID::name |
Definition at line 67 of file variables.h.
Referenced by varID().
|
staticprivate |
Definition at line 244 of file variables.h.
|
private |
Definition at line 246 of file variables.h.