ProtoMol - an object-oriented component based framework for Molecular Dynamics simulations.

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ProtoMol::Stack< T > Class Template Reference

#include <Stack.h>

List of all members.

Public Member Functions

 Stack ()
 ~Stack ()
void addElement (T newElement)
popElement ()
getElement (unsigned int index)
unsigned int getNumElements ()
void reset (bool delmem)

Private Attributes

T * m_elem
unsigned int m_numElements
unsigned int m_size

Static Private Attributes

const unsigned int INCR_SIZE = 50


Detailed Description

template<class T>
class ProtoMol::Stack< T >

Stack which also enables random access.


Constructor & Destructor Documentation

template<class T>
ProtoMol::Stack< T >::Stack  ) 
 

template<class T>
ProtoMol::Stack< T >::~Stack  ) 
 


Member Function Documentation

template<class T>
void ProtoMol::Stack< T >::addElement newElement  ) 
 

template<class T>
T ProtoMol::Stack< T >::getElement unsigned int  index  ) 
 

template<class T>
unsigned int ProtoMol::Stack< T >::getNumElements  ) 
 

template<class T>
T ProtoMol::Stack< T >::popElement  ) 
 

template<class T>
void ProtoMol::Stack< T >::reset bool  delmem  ) 
 


Member Data Documentation

template<class T>
const unsigned int ProtoMol::Stack< T >::INCR_SIZE = 50 [static, private]
 

template<class T>
T* ProtoMol::Stack< T >::m_elem [private]
 

template<class T>
unsigned int ProtoMol::Stack< T >::m_numElements [private]
 

template<class T>
unsigned int ProtoMol::Stack< T >::m_size [private]
 


The documentation for this class was generated from the following file: Last update: . GNU GENERAL PUBLIC LICENSE, copyrighted by the University of Notre Dame and the University of Bergen, Norway.