ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
varID Class Reference

#include <variables.h>

Inheritance diagram for varID:
Collaboration diagram for varID:

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)
 
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
 
- 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
 
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)
 

Private Member Functions

void genID ()
 

Private Attributes

long ID
 

Static Private Attributes

static long globalMaxID
 

Detailed Description

Definition at line 59 of file variables.h.

Constructor & Destructor Documentation

varID::varID ( )
inline

Definition at line 69 of file variables.h.

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

Definition at line 71 of file variables.h.

References genID(), name, and varType.

varID::varID ( SgNode n)
inline

Definition at line 79 of file variables.h.

References genID(), and init().

varID::varID ( SgInitializedName name)
inline

Definition at line 86 of file variables.h.

References genID(), and init().

varID::varID ( const SgExpression exp)
inline

Definition at line 94 of file variables.h.

References genID(), and init().

varID::varID ( const varID that)
inline

Definition at line 101 of file variables.h.

References init().

Member Function Documentation

bool varID::init ( const varID that)

Referenced by varID().

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)
SgScopeStatement* varID::getScope ( ) const
virtual

Implements variable.

SgExpression* varID::toSgExpression ( ) const
virtual

Implements variable.

SgExpression* varID::toSgExpression_rec ( std::vector< SgInitializedName * >::const_iterator  rest) const
protected
static bool varID::isValidVarExp ( const SgNode exp)
static
static bool varID::isValidVarExp ( const SgExpression exp)
static
static bool varID::isValidVarExp ( const SgInitializedName exp)
static
static bool varID::isValidVarExp_rec ( const SgExpression exp)
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 variable that) const
virtual

Implements variable.

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

Implements variable.

bool varID::operator> ( const varID that) const
bool varID::operator<= ( const varID that) const
bool varID::operator>= ( const varID that) const
std::string varID::str ( ) 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
bool varID::isGlobal ( ) const
virtual

Implements variable.

void varID::genID ( )
private

Referenced by varID().

long varID::getID ( ) const

Member Data Documentation

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().

long varID::globalMaxID
staticprivate

Definition at line 244 of file variables.h.

long varID::ID
private

Definition at line 246 of file variables.h.


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