PyVariableContext Class Reference

List of all members.

Public Member Functions

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

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 1082 of file pycode.cpp.


Constructor & Destructor Documentation

PyVariableContext::PyVariableContext (  )  [inline]

Definition at line 1092 of file pycode.cpp.

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

Definition at line 1097 of file pycode.cpp.


Member Function Documentation

void PyVariableContext::pushScope (  )  [inline]

Definition at line 1101 of file pycode.cpp.

void PyVariableContext::popScope (  )  [inline]

Definition at line 1106 of file pycode.cpp.

void PyVariableContext::clear (  )  [inline]

Definition at line 1114 of file pycode.cpp.

References SDict< T >::clear().

void PyVariableContext::clearExceptGlobal (  )  [inline]

Definition at line 1120 of file pycode.cpp.

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

Definition at line 1133 of file pycode.cpp.

References SDict< T >::append(), dummyContext, getResolvedClass(), and QCString.

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

Definition at line 1159 of file pycode.cpp.

References SDict< T >::find().


Member Data Documentation

const ClassDef * PyVariableContext::dummyContext [static]

Definition at line 1085 of file pycode.cpp.

Referenced by addVariable().


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



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