TStack< T > Class Template Reference
[Template Containers]

TStack is a template container based on the LIFO-principle (last in/first out). More...

#include <tstack.h>

Inheritance diagram for TStack< T >:
Inheritance graph
[legend]

Public Member Functions

 TStack ()
 Default stack constructor.
 TStack (const TStack< T > &)
 Stack copy constructor.
 ~TStack ()
 Stack destructor.
TStack< T > & operator= (const TStack< T > &)
 Assignment operator.
bool push (const T &)
 Push item onto stack (add to stack).
pop ()
 Pop top item from stack (return copy of item and remove from stack).
const T & peek () const
 Return top item (but leave item on the stack).

Detailed Description

template<class T>
class Steinberg::TStack< T >

TStack is a template container based on the LIFO-principle (last in/first out).

http://en.wikipedia.org/wiki/Stack_(data_structure)

Return values in error cases:

See also:
TContainer

Constructor & Destructor Documentation

TStack (  )  [inline]

Default stack constructor.

TStack ( const TStack< T > &  stack  )  [inline]

Stack copy constructor.

~TStack (  )  [inline]

Stack destructor.


Member Function Documentation

TStack< T > & operator= ( const TStack< T > &  stack  )  [inline]

Assignment operator.

Parameters:
stack Assignment operator copies the contents of the input stack into this stack.

Reimplemented from TLinkedList< T >.

bool push ( const T &  obj  )  [inline]

Push item onto stack (add to stack).

Returns:
Returns true if new item was added successfully.
T pop (  )  [inline]

Pop top item from stack (return copy of item and remove from stack).

const T & peek (  )  const [inline]

Return top item (but leave item on the stack).

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Empty

Copyright ©2013 Steinberg Media Technologies GmbH. All Rights Reserved.