Vcsn  2.4
Be Rational
vcsn::detail::dot::stack< T, S > Class Template Reference

#include <stack.hh>

Inheritance diagram for vcsn::detail::dot::stack< T, S >:
Collaboration diagram for vcsn::detail::dot::stack< T, S >:

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)
 Steal the contents of t. More...
 
void pop (unsigned int n=1)
 
void clear ()
 
S::size_type size () const
 
const_iterator begin () const
 
const_iterator end () const
 

Private Member Functions

 stack (const stack &)
 
stackoperator= (const stack &)
 

Private Attributes

seq_
 The wrapped container. More...
 

Detailed Description

template<class T, class S = std::vector<T>>
class vcsn::detail::dot::stack< T, S >

Definition at line 47 of file stack.hh.

Member Typedef Documentation

template<class T, class S = std::vector<T>>
typedef S::const_reverse_iterator vcsn::detail::dot::stack< T, S >::const_iterator

Definition at line 52 of file stack.hh.

template<class T, class S = std::vector<T>>
typedef S::reverse_iterator vcsn::detail::dot::stack< T, S >::iterator

Definition at line 51 of file stack.hh.

Constructor & Destructor Documentation

template<class T, class S = std::vector<T>>
vcsn::detail::dot::stack< T, S >::stack ( )
inline

Definition at line 54 of file stack.hh.

template<class T, class S = std::vector<T>>
vcsn::detail::dot::stack< T, S >::stack ( unsigned int  n)
inline

Definition at line 60 of file stack.hh.

template<class T, class S = std::vector<T>>
vcsn::detail::dot::stack< T, S >::stack ( const stack< T, S > &  )
private

Member Function Documentation

template<class T, class S = std::vector<T>>
const_iterator vcsn::detail::dot::stack< T, S >::begin ( ) const
inline

Definition at line 112 of file stack.hh.

Referenced by vcsn::detail::dot::parser::yystack_print_().

template<class T, class S = std::vector<T>>
void vcsn::detail::dot::stack< T, S >::clear ( )
inline

Definition at line 98 of file stack.hh.

Referenced by vcsn::detail::dot::parser::parse().

template<class T, class S = std::vector<T>>
const_iterator vcsn::detail::dot::stack< T, S >::end ( ) const
inline

Definition at line 119 of file stack.hh.

Referenced by vcsn::detail::dot::parser::yystack_print_().

template<class T, class S = std::vector<T>>
stack& vcsn::detail::dot::stack< T, S >::operator= ( const stack< T, S > &  )
private
template<class T, class S = std::vector<T>>
T& vcsn::detail::dot::stack< T, S >::operator[] ( unsigned int  i)
inline

Definition at line 66 of file stack.hh.

Referenced by vcsn::detail::dot::stack< stack_symbol_type >::push().

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

Definition at line 73 of file stack.hh.

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

Definition at line 91 of file stack.hh.

Referenced by vcsn::detail::dot::parser::yypop_().

template<class T, class S = std::vector<T>>
void vcsn::detail::dot::stack< T, S >::push ( T &  t)
inline

Steal the contents of t.

Close to move-semantics.

Definition at line 83 of file stack.hh.

Referenced by vcsn::detail::dot::parser::yypush_().

template<class T, class S = std::vector<T>>
S::size_type vcsn::detail::dot::stack< T, S >::size ( ) const
inline

Definition at line 105 of file stack.hh.

Referenced by vcsn::detail::dot::parser::parse().

Member Data Documentation


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