libxspf  1.2.0
Public Types | Public Member Functions | List of all members
XspfStack< T > Class Template Reference

#include <XspfStack.h>

Inheritance diagram for XspfStack< T >:
Inheritance graph
[legend]
Collaboration diagram for XspfStack< T >:
Collaboration graph
[legend]

Public Types

typedef std::stack< T >::size_type size_type
 Holds the height of the stack.
 

Public Member Functions

size_type size () const
 
T const & top () const
 
void push (T const &value)
 
void pop ()
 
void clear ()
 

Detailed Description

template<class T>
class Xspf::XspfStack< T >

A generic stack data structure.

Definition at line 56 of file XspfExtensionReader.h.

Member Function Documentation

◆ clear()

void clear ( )
inline

Clears the stack.

Definition at line 97 of file XspfStack.h.

◆ pop()

void pop ( )
inline

Pops the topmost element off the stack.

Definition at line 90 of file XspfStack.h.

◆ push()

void push ( T const &  value)
inline

Pushes value on top of the stack.

Definition at line 83 of file XspfStack.h.

◆ size()

size_type size ( ) const
inline

Returns the number of elements on the stack.

Definition at line 69 of file XspfStack.h.

◆ top()

T const& top ( ) const
inline

Returns the topmost element on the stack.

Definition at line 76 of file XspfStack.h.


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