Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
lout::container::typed::Stack< T > Class Template Reference

Typed version of container::untyped::Stack. More...

#include <container.hh>

Public Member Functions

 Stack (bool ownerOfObjects)
 
void push (T *object)
 
void pushUnder (T *object)
 
T * getTop () const
 
void pop ()
 
- Public Member Functions inherited from lout::container::typed::Collection< T >
 Collection ()
 
 ~Collection ()
 
bool equals (Object *other)
 Returns, whether two objects are equal.
 
int hashValue ()
 Return a hash value for the object.
 
void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
 
Iterator< T > iterator ()
 
int size ()
 
- Public Member Functions inherited from lout::object::Object
virtual ~Object ()
 The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly.
 
virtual Objectclone ()
 Return an exact copy of the object.
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object.
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses.
 

Additional Inherited Members

- Protected Attributes inherited from lout::container::typed::Collection< T >
untyped::Collectionbase
 

Detailed Description

template<class T>
class lout::container::typed::Stack< T >

Typed version of container::untyped::Stack.

Definition at line 551 of file container.hh.

Constructor & Destructor Documentation

◆ Stack()

template<class T >
lout::container::typed::Stack< T >::Stack ( bool  ownerOfObjects)
inline

Definition at line 554 of file container.hh.

References lout::container::typed::Collection< T >::base.

Member Function Documentation

◆ getTop()

template<class T >
T * lout::container::typed::Stack< T >::getTop ( ) const
inline

Definition at line 561 of file container.hh.

References lout::container::typed::Collection< T >::base.

Referenced by main(), and testStackAsQueue().

◆ pop()

template<class T >
void lout::container::typed::Stack< T >::pop ( )
inline

Definition at line 563 of file container.hh.

References lout::container::typed::Collection< T >::base.

Referenced by main(), and testStackAsQueue().

◆ push()

template<class T >
void lout::container::typed::Stack< T >::push ( T *  object)
inline

Definition at line 557 of file container.hh.

References lout::container::typed::Collection< T >::base.

Referenced by main().

◆ pushUnder()

template<class T >
void lout::container::typed::Stack< T >::pushUnder ( T *  object)
inline

Definition at line 559 of file container.hh.

References lout::container::typed::Collection< T >::base.

Referenced by testStackAsQueue().


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