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.

879 : m_index(0) {}
int m_index
Definition: util.cpp:941

Member Function Documentation

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

Definition at line 905 of file util.cpp.

906  {
907  int i=0;
908  for (i=0;i<m_index;i++)
909  {
910  AccessElem *e = &m_elements[i];
911  if (e->scope==scope && e->fileScope==fileScope && e->item==item)
912  {
913  return TRUE;
914  }
915  }
916  return FALSE;
917  }
const bool FALSE
Definition: qglobal.h:370
int m_index
Definition: util.cpp:941
AccessElem m_elements[MAX_STACK_SIZE]
Definition: util.cpp:942
const double e
const bool TRUE
Definition: qglobal.h:371
bool AccessStack::find ( Definition scope,
FileDef fileScope,
Definition item,
const QCString expScope 
)
inline

Definition at line 918 of file util.cpp.

919  {
920  int i=0;
921  for (i=0;i<m_index;i++)
922  {
923  AccessElem *e = &m_elements[i];
924  if (e->scope==scope && e->fileScope==fileScope && e->item==item && e->expScope==expScope)
925  {
926  return TRUE;
927  }
928  }
929  return FALSE;
930  }
const bool FALSE
Definition: qglobal.h:370
int m_index
Definition: util.cpp:941
AccessElem m_elements[MAX_STACK_SIZE]
Definition: util.cpp:942
const double e
const bool TRUE
Definition: qglobal.h:371
void AccessStack::pop ( )
inline

Definition at line 901 of file util.cpp.

902  {
903  if (m_index>0) m_index--;
904  }
int m_index
Definition: util.cpp:941
void AccessStack::push ( Definition scope,
FileDef fileScope,
Definition item 
)
inline

Definition at line 880 of file util.cpp.

881  {
883  {
885  m_elements[m_index].fileScope = fileScope;
886  m_elements[m_index].item = item;
887  m_index++;
888  }
889  }
Definition * item
Definition: util.cpp:938
static QCString scope
Definition: declinfo.cpp:668
Definition * scope
Definition: util.cpp:936
int m_index
Definition: util.cpp:941
AccessElem m_elements[MAX_STACK_SIZE]
Definition: util.cpp:942
const int MAX_STACK_SIZE
Definition: util.cpp:871
FileDef * fileScope
Definition: util.cpp:937
void AccessStack::push ( Definition scope,
FileDef fileScope,
Definition item,
const QCString expScope 
)
inline

Definition at line 890 of file util.cpp.

891  {
893  {
895  m_elements[m_index].fileScope = fileScope;
896  m_elements[m_index].item = item;
897  m_elements[m_index].expScope = expScope;
898  m_index++;
899  }
900  }
Definition * item
Definition: util.cpp:938
static QCString scope
Definition: declinfo.cpp:668
Definition * scope
Definition: util.cpp:936
int m_index
Definition: util.cpp:941
AccessElem m_elements[MAX_STACK_SIZE]
Definition: util.cpp:942
const int MAX_STACK_SIZE
Definition: util.cpp:871
FileDef * fileScope
Definition: util.cpp:937

Member Data Documentation

AccessElem AccessStack::m_elements[MAX_STACK_SIZE]
private

Definition at line 942 of file util.cpp.

int AccessStack::m_index
private

Definition at line 941 of file util.cpp.


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