SAGE 2.0: Documentation for symbols


SgVariableSymbol

Variable Symbol.

For base class see SgSymbol

Variant name: VARIABLE_NAME.

class SgVariableSymbol : public SgSymbol {

public:
    SgName get_name() const;
    SgType * get_type() const
     { return p_declaration ? p_declaration->get_type() : 0; }

/* Generated accessors */
SgInitializedName* get_declaration() const;
void set_declaration(SgInitializedName*);

/* Protected data members */ protected: SgInitializedName* p_declaration; };

SgVariableSymbol -- Constructors

/* This is generated in the header file  */
  SgVariableSymbol(SgInitializedName* declaration);

 /* This is the generated constructor */
SgVariableSymbol::SgVariableSymbol(SgInitializedName* declaration) 
:SgSymbol()
{
p_declaration = declaration;

/* now call the user defined intialization function */ post_construction_initialization();
}

SgVariableSymbol -- Members

Description


SgFunctionSymbol

Function symbol.

For base class see SgSymbol

Variant name: FUNCTION_NAME.

class SgFunctionSymbol : public SgSymbol {

public:
    SgName get_name() const;
    SgType * get_type() const;

/* Generated accessors */
SgFunctionDeclaration* get_declaration() const;
void set_declaration(SgFunctionDeclaration*);

/* Protected data members */ protected: SgFunctionDeclaration* p_declaration; };

SgFunctionSymbol -- Constructors

/* This is generated in the header file  */
  SgFunctionSymbol(SgFunctionDeclaration* declaration);

 /* This is the generated constructor */
SgFunctionSymbol::SgFunctionSymbol(SgFunctionDeclaration* declaration) 
:SgSymbol()
{
p_declaration = declaration;

/* now call the user defined intialization function */ post_construction_initialization();
}

SgFunctionSymbol -- Members

Description


SgFunctionTypeSymbol

Function type symbol. Internal symbol used by SgFunctionTypeTable only

For base class see SgSymbol

Variant name: FUNCTYPE_NAME.

class SgFunctionTypeSymbol : public SgSymbol {


/* Generated accessors */
SgName get_name() const;
void set_name(SgName);
SgType* get_type() const;
void set_type(SgType*);

/* Protected data members */ protected: SgName p_name; SgType* p_type; };

SgFunctionTypeSymbol -- Constructors

/* This is generated in the header file  */
  SgFunctionTypeSymbol(SgName name, SgType* type);

 /* This is the generated constructor */
SgFunctionTypeSymbol::SgFunctionTypeSymbol(SgName name, SgType* type) 
:SgSymbol()
{
p_name = name; p_type = type;

/* now call the user defined intialization function */ post_construction_initialization();
}

SgFunctionTypeSymbol -- Members

Description


SgClassSymbol

Class symbol

For base class see SgSymbol

Variant name: CLASS_NAME.

class SgClassSymbol : public SgSymbol {

public:
public:
    SgName get_name() const;
    SgType * get_type() const;

/* Generated accessors */
SgClassDeclaration* get_declaration() const;
void set_declaration(SgClassDeclaration*);

/* Protected data members */ protected: SgClassDeclaration* p_declaration; };

SgClassSymbol -- Constructors

/* This is generated in the header file  */
  SgClassSymbol(SgClassDeclaration* declaration);

 /* This is the generated constructor */
SgClassSymbol::SgClassSymbol(SgClassDeclaration* declaration) 
:SgSymbol()
{
p_declaration = declaration;

/* now call the user defined intialization function */ post_construction_initialization();
}

SgClassSymbol -- Members

Description


SgEnumSymbol

Enumeration Symbol

For base class see SgSymbol

Variant name: ENUM_NAME.

class SgEnumSymbol : public SgSymbol {

public:
    SgName get_name() const;
    SgType * get_type() const;

/* Generated accessors */
SgEnumDeclaration* get_declaration() const;
void set_declaration(SgEnumDeclaration*);

/* Protected data members */ protected: SgEnumDeclaration* p_declaration; };

SgEnumSymbol -- Constructors

/* This is generated in the header file  */
  SgEnumSymbol(SgEnumDeclaration* declaration);

 /* This is the generated constructor */
SgEnumSymbol::SgEnumSymbol(SgEnumDeclaration* declaration) 
:SgSymbol()
{
p_declaration = declaration;

/* now call the user defined intialization function */ post_construction_initialization();
}

SgEnumSymbol -- Members

Description


SgEnumFieldSymbol

For enumeration fields, type=const int

For base class see SgSymbol

Variant name: FIELD_NAME.

class SgEnumFieldSymbol : public SgSymbol {

public:
    SgName get_name() const;
    SgType * get_type() const;

/* Generated accessors */
SgInitializedName* get_declaration() const;
void set_declaration(SgInitializedName*);

/* Protected data members */ protected: SgInitializedName* p_declaration; };

SgEnumFieldSymbol -- Constructors

/* This is generated in the header file  */
  SgEnumFieldSymbol(SgInitializedName* declaration);

 /* This is the generated constructor */
SgEnumFieldSymbol::SgEnumFieldSymbol(SgInitializedName* declaration) 
:SgSymbol()
{
p_declaration = declaration;

/* now call the user defined intialization function */ post_construction_initialization();
}

SgEnumFieldSymbol -- Members

Description


SgTypedefSymbol

Typedef Symbol.

For base class see SgSymbol

Variant name: TYPEDEF_NAME.

class SgTypedefSymbol : public SgSymbol {

public:
    SgName get_name() const;
    SgType * get_type() const;

/* Generated accessors */
SgTypedefDeclaration* get_declaration() const;
void set_declaration(SgTypedefDeclaration*);

/* Protected data members */ protected: SgTypedefDeclaration* p_declaration; };

SgTypedefSymbol -- Constructors

/* This is generated in the header file  */
  SgTypedefSymbol(SgTypedefDeclaration* declaration);

 /* This is the generated constructor */
SgTypedefSymbol::SgTypedefSymbol(SgTypedefDeclaration* declaration) 
:SgSymbol()
{
p_declaration = declaration;

/* now call the user defined intialization function */ post_construction_initialization();
}

SgTypedefSymbol -- Members

Description


SgMemberFunctionSymbol

Member Function Symbol.

For base class see SgFunctionSymbol

Variant name: MEMBER_FUNC_NAME.

class SgMemberFunctionSymbol : public SgFunctionSymbol {

public:
SgMemberFunctionDeclaration *get_declaration();
SgClassDefinition *get_scope();
public:
    SgName get_name() const;
    SgType * get_type() const;

/* Generated accessors */

};

SgMemberFunctionSymbol -- Constructors

/* This is generated in the header file  */
  SgMemberFunctionSymbol(SgFunctionDeclaration* declaration);

 /* This is the generated constructor */
SgMemberFunctionSymbol::SgMemberFunctionSymbol(SgFunctionDeclaration* declaration) 
:SgFunctionSymbol(declaration)
{

/* now call the user defined intialization function */ post_construction_initialization();
}

No members associated with SgMemberFunctionSymbol


SgLabelSymbol

Label Symbol.

For base class see SgSymbol

Variant name: LABEL_NAME.

class SgLabelSymbol : public SgSymbol {

public:
    SgName get_name() const;
    SgType * get_type() const { return 0; }

/* Generated accessors */
SgLabelStatement* get_declaration() const;
void set_declaration(SgLabelStatement*);

/* Protected data members */ protected: SgLabelStatement* p_declaration; };

SgLabelSymbol -- Constructors

/* This is generated in the header file  */
  SgLabelSymbol(SgLabelStatement* declaration);

 /* This is the generated constructor */
SgLabelSymbol::SgLabelSymbol(SgLabelStatement* declaration) 
:SgSymbol()
{
p_declaration = declaration;

/* now call the user defined intialization function */ post_construction_initialization();
}

SgLabelSymbol -- Members

Description


Goto:
[Extreme] Extreme! Computing Home Page


horea adrian abrudan
Last modified: Wed June 18 13:20:54 EST