2005/5/9

     
 

class core_stack

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::sys::core_stack< T > Class Template Reference

#include <core_vector.h>

List of all members.


Detailed Description

template<class T>
class acdk::lang::sys::core_stack< T >

Basic stack based on core_vector.


Public Types

typedef Container::iterator iterator
typedef Container::const_iterator const_iterator

Public Member Functions

 core_stack ()
 core_stack (int initsize, int initcap, const T &fillwith=T())
void push (const T &t)
pop ()
void pop_noret ()
T & top ()
const T & top () const
T & bottom ()
const T & bottom () const
int size () const
bool empty () const
int capacity () const
T & peek (int fromtop=0)
const T & peek (int fromtop=0) const
T & operator[] (int idx)
const T & operator[] (int idx) const

Public Attributes

Container _vec

Private Types

typedef core_vector< T > Container


Member Typedef Documentation

template<class T>
typedef Container::const_iterator acdk::lang::sys::core_stack< T >::const_iterator
 

template<class T>
typedef core_vector<T> acdk::lang::sys::core_stack< T >::Container [private]
 

template<class T>
typedef Container::iterator acdk::lang::sys::core_stack< T >::iterator
 


Constructor & Destructor Documentation

template<class T>
acdk::lang::sys::core_stack< T >::core_stack  )  [inline]
 

template<class T>
acdk::lang::sys::core_stack< T >::core_stack int  initsize,
int  initcap,
const T &  fillwith = T()
[inline]
 


Member Function Documentation

template<class T>
const T& acdk::lang::sys::core_stack< T >::bottom  )  const [inline]
 

template<class T>
T& acdk::lang::sys::core_stack< T >::bottom  )  [inline]
 

template<class T>
int acdk::lang::sys::core_stack< T >::capacity  )  const [inline]
 

template<class T>
bool acdk::lang::sys::core_stack< T >::empty  )  const [inline]
 

template<class T>
const T& acdk::lang::sys::core_stack< T >::operator[] int  idx  )  const [inline]
 

template<class T>
T& acdk::lang::sys::core_stack< T >::operator[] int  idx  )  [inline]
 

template<class T>
const T& acdk::lang::sys::core_stack< T >::peek int  fromtop = 0  )  const [inline]
 

template<class T>
T& acdk::lang::sys::core_stack< T >::peek int  fromtop = 0  )  [inline]
 

template<class T>
T acdk::lang::sys::core_stack< T >::pop  )  [inline]
 

template<class T>
void acdk::lang::sys::core_stack< T >::pop_noret  )  [inline]
 

template<class T>
void acdk::lang::sys::core_stack< T >::push const T &  t  )  [inline]
 

template<class T>
int acdk::lang::sys::core_stack< T >::size  )  const [inline]
 

template<class T>
const T& acdk::lang::sys::core_stack< T >::top  )  const [inline]
 

template<class T>
T& acdk::lang::sys::core_stack< T >::top  )  [inline]
 


Member Data Documentation

template<class T>
Container acdk::lang::sys::core_stack< T >::_vec