My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Private Attributes | List of all members
AccessStack Class Reference

Classes

struct  AccessElem
 

Public Member Functions

 AccessStack ()
 
void push (Definition *scope, FileDef *fileScope, Definition *item)
 
void push (Definition *scope, FileDef *fileScope, Definition *item, const QCString &expScope)
 
void pop ()
 
bool find (Definition *scope, FileDef *fileScope, Definition *item)
 
bool find (Definition *scope, FileDef *fileScope, Definition *item, const QCString &expScope)
 

Private Attributes

int m_index
 
AccessElem m_elements [MAX_STACK_SIZE]
 

Detailed Description

Helper class representing the stack of items considered while resolving the scope.

Definition at line 876 of file util.cpp.

Constructor & Destructor Documentation

AccessStack::AccessStack ( )
inline

Definition at line 879 of file util.cpp.

: m_index(0) {}

Member Function Documentation

bool AccessStack::find ( Definition scope,
FileDef fileScope,
Definition item 
)
inline

Definition at line 905 of file util.cpp.

References AccessStack::AccessElem::fileScope, AccessStack::AccessElem::item, m_elements, m_index, and AccessStack::AccessElem::scope.

Referenced by isAccessibleFrom(), and isAccessibleFromWithExpScope().

{
int i=0;
for (i=0;i<m_index;i++)
{
AccessElem *e = &m_elements[i];
if (e->scope==scope && e->fileScope==fileScope && e->item==item)
{
return TRUE;
}
}
return FALSE;
}
bool AccessStack::find ( Definition scope,
FileDef fileScope,
Definition item,
const QCString &  expScope 
)
inline

Definition at line 918 of file util.cpp.

References AccessStack::AccessElem::expScope, AccessStack::AccessElem::fileScope, AccessStack::AccessElem::item, m_elements, m_index, and AccessStack::AccessElem::scope.

{
int i=0;
for (i=0;i<m_index;i++)
{
AccessElem *e = &m_elements[i];
if (e->scope==scope && e->fileScope==fileScope && e->item==item && e->expScope==expScope)
{
return TRUE;
}
}
return FALSE;
}
void AccessStack::pop ( )
inline

Definition at line 901 of file util.cpp.

References m_index.

Referenced by isAccessibleFrom(), and isAccessibleFromWithExpScope().

{
if (m_index>0) m_index--;
}
void AccessStack::push ( Definition scope,
FileDef fileScope,
Definition item 
)
inline
void AccessStack::push ( Definition scope,
FileDef fileScope,
Definition item,
const QCString &  expScope 
)
inline

Member Data Documentation

AccessElem AccessStack::m_elements[MAX_STACK_SIZE]
private

Definition at line 942 of file util.cpp.

Referenced by find(), and push().

int AccessStack::m_index
private

Definition at line 941 of file util.cpp.

Referenced by find(), pop(), and push().


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