Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
CoreStack< T > Class Template Reference

Public Member Functions

const unsigned int & get_count () const
 
void push (const T &value)
 
void push (T &&value)
 
void pop ()
 
const T & top () const
 
T & top ()
 
void remove_all ()
 
const T & operator[] (unsigned int index) const
 
T & operator[] (unsigned int index)
 
size_t get_memory_size () const
 

Detailed Description

template<class T>
class CoreStack< T >

Template stack LIFO collection.

Member Function Documentation

template<class T >
const unsigned int & CoreStack< T >::get_count ( ) const
inline

Get the number of items in the stack

template<class T >
size_t CoreStack< T >::get_memory_size ( void  ) const
inline

Get the size in bytes of this stack.

template<class T >
const T & CoreStack< T >::operator[] ( unsigned int  index) const
inline

Access a stack item by index as an immutable reference

template<class T >
T & CoreStack< T >::operator[] ( unsigned int  index)
inline

Access a stack item by index as a mutable reference

template<class T >
void CoreStack< T >::pop ( )
inline

Remove the last item of the stack

template<class T>
void CoreStack< T >::push ( const T &  value)
inline

Push an item on the top of the stack

template<class T>
void CoreStack< T >::push ( T &&  value)
inline

Move an item on the top of the stack

template<class T >
void CoreStack< T >::remove_all ( void  )
inline

Clear the stack

template<class T >
const T & CoreStack< T >::top ( ) const
inline

Get the last item of the stack as an immutable reference

template<class T >
T & CoreStack< T >::top ( )
inline

Get the last item of the stack as a mutable reference