Tramway SDK
Public Member Functions | Protected Attributes | List of all members
tram::StackPool< T > Class Template Reference

#include <stackpool.h>

Public Member Functions

 StackPool (std::string name, size_t initialSize)
 
 StackPool (std::string name, size_t max_size, std::initializer_list< T > list)
 
T * AddNew (size_t units)
 
void Reset ()
 
size_t size ()
 
T * begin ()
 
T * end ()
 

Protected Attributes

std::string poolName
 
size_t poolSize
 
size_t maxSize
 
T * first
 
T * last
 

Constructor & Destructor Documentation

◆ StackPool() [1/2]

template<typename T >
tram::StackPool< T >::StackPool ( std::string  name,
size_t  initialSize 
)
inline

◆ StackPool() [2/2]

template<typename T >
tram::StackPool< T >::StackPool ( std::string  name,
size_t  max_size,
std::initializer_list< T >  list 
)
inline

Member Function Documentation

◆ AddNew()

template<typename T >
T * tram::StackPool< T >::AddNew ( size_t  units)
inline

◆ begin()

template<typename T >
T * tram::StackPool< T >::begin ( )
inline

◆ end()

template<typename T >
T * tram::StackPool< T >::end ( )
inline

◆ Reset()

template<typename T >
void tram::StackPool< T >::Reset ( )
inline

◆ size()

template<typename T >
size_t tram::StackPool< T >::size ( )
inline

Member Data Documentation

◆ first

template<typename T >
T* tram::StackPool< T >::first
protected

◆ last

template<typename T >
T* tram::StackPool< T >::last
protected

◆ maxSize

template<typename T >
size_t tram::StackPool< T >::maxSize
protected

◆ poolName

template<typename T >
std::string tram::StackPool< T >::poolName
protected

◆ poolSize

template<typename T >
size_t tram::StackPool< T >::poolSize
protected

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