|
//-----------------------------------------------------------------------------
#include "includes.h"
#include "callstack.h"
//-----------------------------------------------------------------------------
CallStack::CallStack()
: mEntryStack ()
{
}
//-----------------------------------------------------------------------------
void CallStack::push( Function *func)
{
mEntryStack.push( func);
}
//-----------------------------------------------------------------------------
bool CallStack::hasChild()
{
return ( mEntryStack.empty() ? false : true );
}
//-----------------------------------------------------------------------------
Function* CallStack::top()
{
return hasChild() ? mEntryStack.top() : NULL;
}
//-----------------------------------------------------------------------------
void CallStack::pop()
{
if( hasChild())
mEntryStack.pop();
}
//-----------------------------------------------------------------------------
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
C/C++ practitioner with more than 5 years of experience in 3D Visualization.