MULTIBODY SIMULATION SOFTWARE - API documentation

chrono::ChStack< dt > Class Template Reference

#include <CHstack.h>

List of all members.

Public Member Functions

 ChStack (long mmaxsize)
void Clear ()
void Set_maxsize (long mm)
int Get_maxsize ()
int Get_used ()
ChList< dt > * GetList ()
dt * GetTop ()
dt * GetTail ()
int Push (dt *mp)
int Pop ()
int Dup ()
int Swap ()


Detailed Description

template<class dt>
class chrono::ChStack< dt >

Class for generic stack of pointers to items. Stacks are used for formula evaluations, for example. Note that, on stack deletion, also the objects pointed by the stack items are deleted (this is different from STL stacks). Also, popping an element, will also delete it, etc. If you need a 'classical' stack, use the STL template stack instead.
CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on 17 Jul 2009 by Doxygen