librostlab-blast  1.0.1
Public Types | Public Member Functions | List of all members
rostlab::blast::stack< T, S > Class Template Reference

#include <blast-parser-stack.h>

Public Types

typedef S::reverse_iterator iterator
 
typedef S::const_reverse_iterator const_iterator
 

Public Member Functions

 stack ()
 
 stack (unsigned int n)
 
T & operator[] (unsigned int i)
 
const T & operator[] (unsigned int i) const
 
void push (T &t)
 
void pop (unsigned int n=1)
 
void clear ()
 
S::size_type size () const
 
const_iterator begin () const
 
const_iterator end () const
 

Detailed Description

template<class T, class S = std::vector<T>>
class rostlab::blast::stack< T, S >

Definition at line 47 of file blast-parser-stack.h.

Member Typedef Documentation

template<class T, class S = std::vector<T>>
typedef S::const_reverse_iterator rostlab::blast::stack< T, S >::const_iterator

Definition at line 52 of file blast-parser-stack.h.

template<class T, class S = std::vector<T>>
typedef S::reverse_iterator rostlab::blast::stack< T, S >::iterator

Definition at line 51 of file blast-parser-stack.h.

Constructor & Destructor Documentation

template<class T, class S = std::vector<T>>
rostlab::blast::stack< T, S >::stack ( )
inline

Definition at line 54 of file blast-parser-stack.h.

template<class T, class S = std::vector<T>>
rostlab::blast::stack< T, S >::stack ( unsigned int  n)
inline

Definition at line 60 of file blast-parser-stack.h.

Member Function Documentation

template<class T, class S = std::vector<T>>
const_iterator rostlab::blast::stack< T, S >::begin ( ) const
inline

Definition at line 112 of file blast-parser-stack.h.

template<class T, class S = std::vector<T>>
void rostlab::blast::stack< T, S >::clear ( )
inline

Definition at line 98 of file blast-parser-stack.h.

template<class T, class S = std::vector<T>>
const_iterator rostlab::blast::stack< T, S >::end ( ) const
inline

Definition at line 119 of file blast-parser-stack.h.

template<class T, class S = std::vector<T>>
T& rostlab::blast::stack< T, S >::operator[] ( unsigned int  i)
inline

Definition at line 66 of file blast-parser-stack.h.

template<class T, class S = std::vector<T>>
const T& rostlab::blast::stack< T, S >::operator[] ( unsigned int  i) const
inline

Definition at line 73 of file blast-parser-stack.h.

template<class T, class S = std::vector<T>>
void rostlab::blast::stack< T, S >::pop ( unsigned int  n = 1)
inline

Definition at line 91 of file blast-parser-stack.h.

template<class T, class S = std::vector<T>>
void rostlab::blast::stack< T, S >::push ( T &  t)
inline

Steal the contents of t.

Close to move-semantics.

Definition at line 83 of file blast-parser-stack.h.

template<class T, class S = std::vector<T>>
S::size_type rostlab::blast::stack< T, S >::size ( ) const
inline

Definition at line 105 of file blast-parser-stack.h.


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