VariableContext Class Reference

List of all members.

Public Member Functions

 VariableContext ()
virtual ~VariableContext ()
void pushScope ()
void popScope ()
void clear ()
void clearExceptGlobal ()
void addVariable (const QCString &type, const QCString &name)
ClassDeffindVariable (const QCString &name)
int count () const

Static Public Attributes

static const ClassDefdummyContext

Classes

class  Scope

Detailed Description

Represents a stack of variable to class mappings as found in the code. Each scope is enclosed in pushScope() and popScope() calls. Variables are added by calling addVariables() and one can search for variable using findVariable().

Definition at line 8101 of file code.cpp.


Constructor & Destructor Documentation

VariableContext::VariableContext (  )  [inline]

Definition at line 8112 of file code.cpp.

virtual VariableContext::~VariableContext (  )  [inline, virtual]

Definition at line 8116 of file code.cpp.


Member Function Documentation

void VariableContext::pushScope (  )  [inline]

Definition at line 8120 of file code.cpp.

References DBG_CTX.

void VariableContext::popScope (  )  [inline]

Definition at line 8126 of file code.cpp.

References DBG_CTX.

void VariableContext::clear (  )  [inline]

Definition at line 8139 of file code.cpp.

References SDict< T >::clear().

void VariableContext::clearExceptGlobal (  )  [inline]

Definition at line 8145 of file code.cpp.

References DBG_CTX.

void VariableContext::addVariable ( const QCString &  type,
const QCString &  name 
)

Definition at line 8161 of file code.cpp.

References SDict< T >::append(), DBG_CTX, dummyContext, SDict< T >::find(), getResolvedClass(), ClassDef::getVariableInstance(), Definition::name(), QCString, and ClassDef::templateArguments().

ClassDef * VariableContext::findVariable ( const QCString &  name  ) 

Definition at line 8231 of file code.cpp.

References DBG_CTX, SDict< T >::find(), and QCString.

int VariableContext::count (  )  const [inline]

Definition at line 8154 of file code.cpp.


Member Data Documentation

const ClassDef * VariableContext::dummyContext [static]

Definition at line 8104 of file code.cpp.

Referenced by addVariable().


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



Generated on Mon Mar 31 10:59:16 2008 by  doxygen 1.5.1