HPCToolkit
PointerStack Class Reference

#include <PointerStack.hpp>

Public Member Functions

 PointerStack (unsigned int initialSize=32)
 
 ~PointerStack ()
 
void Push (void *item)
 
void * Pop ()
 
void * Top ()
 
void * Get (unsigned int depth)
 
unsigned int Depth ()
 

Private Member Functions

void ExtendAndPush (void *item)
 

Private Attributes

int topElement
 
int lastSlot
 
void ** theStack
 

Detailed Description

Definition at line 70 of file PointerStack.hpp.

Constructor & Destructor Documentation

◆ PointerStack()

PointerStack::PointerStack ( unsigned int  initialSize = 32)

Definition at line 72 of file PointerStack.cpp.

◆ ~PointerStack()

PointerStack::~PointerStack ( )

Definition at line 80 of file PointerStack.cpp.

Member Function Documentation

◆ Depth()

unsigned int PointerStack::Depth ( )
inline

Definition at line 112 of file PointerStack.hpp.

Here is the caller graph for this function:

◆ ExtendAndPush()

void PointerStack::ExtendAndPush ( void *  item)
private

Definition at line 86 of file PointerStack.cpp.

Here is the caller graph for this function:

◆ Get()

void* PointerStack::Get ( unsigned int  depth)
inline

Definition at line 101 of file PointerStack.hpp.

Here is the caller graph for this function:

◆ Pop()

void* PointerStack::Pop ( )
inline

Definition at line 87 of file PointerStack.hpp.

Here is the caller graph for this function:

◆ Push()

void PointerStack::Push ( void *  item)
inline

Definition at line 79 of file PointerStack.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Top()

void* PointerStack::Top ( void  )
inline

Definition at line 93 of file PointerStack.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ lastSlot

int PointerStack::lastSlot
private

Definition at line 72 of file PointerStack.hpp.

◆ theStack

void** PointerStack::theStack
private

Definition at line 73 of file PointerStack.hpp.

◆ topElement

int PointerStack::topElement
private

Definition at line 71 of file PointerStack.hpp.


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