zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TVariable Class Reference

#include <SymbolTable.h>

Inherits TSymbol.

Public Member Functions

 TVariable (const TString *name, const TType &t, bool uT=false)
 
virtual ~TVariable ()
 
virtual void dump (TInfoSink &infoSink) const
 
ConstantUniongetConstPointer ()
 
ConstantUniongetConstPointer () const
 
TTypegetType ()
 
const TTypegetType () const
 
bool isUserType () const
 
virtual bool isVariable () const
 
void setQualifier (TQualifier qualifier)
 
void shareConstPointer (ConstantUnion *constArray)
 
- Public Member Functions inherited from TSymbol
 TSymbol (const TString *n)
 
virtual ~TSymbol ()
 
const TStringgetExtension () const
 
virtual const TStringgetMangledName () const
 
const TStringgetName () const
 
int getUniqueId () const
 
virtual bool isFunction () const
 
 POOL_ALLOCATOR_NEW_DELETE ()
 
void relateToExtension (const TString &ext)
 
void setUniqueId (int id)
 

Detailed Description

Definition at line 76 of file SymbolTable.h.

Constructor & Destructor Documentation

TVariable::TVariable ( const TString name,
const TType t,
bool  uT = false 
)
inline

Definition at line 78 of file SymbolTable.h.

virtual TVariable::~TVariable ( )
inlinevirtual

Definition at line 79 of file SymbolTable.h.

Member Function Documentation

void TVariable::dump ( TInfoSink infoSink) const
virtual

Implements TSymbol.

Definition at line 130 of file SymbolTable.cpp.

References TInfoSink::debug, and TSymbol::getName().

ConstantUnion* TVariable::getConstPointer ( )
inline
ConstantUnion* TVariable::getConstPointer ( ) const
inline

Definition at line 96 of file SymbolTable.h.

TType& TVariable::getType ( )
inline
const TType& TVariable::getType ( ) const
inline

Definition at line 82 of file SymbolTable.h.

bool TVariable::isUserType ( ) const
inline

Definition at line 83 of file SymbolTable.h.

Referenced by check_type().

virtual bool TVariable::isVariable ( ) const
inlinevirtual

Reimplemented from TSymbol.

Definition at line 80 of file SymbolTable.h.

void TVariable::setQualifier ( TQualifier  qualifier)
inline

Definition at line 84 of file SymbolTable.h.

Referenced by InsertBuiltInFunctions().

void TVariable::shareConstPointer ( ConstantUnion constArray)
inline

Definition at line 98 of file SymbolTable.h.

Referenced by TParseContext::executeInitializer().


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