torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::stack< T, S > Class Template Reference

Bison stack class. More...

#include <stack.hh>

Public Types

typedef S::reverse_iterator iterator
 Bison undocumented. More...
 
typedef S::const_reverse_iterator const_iterator
 Bison undocumented. More...
 
typedef S::reverse_iterator iterator
 
typedef S::const_reverse_iterator const_iterator
 

Public Member Functions

 stack ()
 
 stack (unsigned int n)
 Bison undocumented. More...
 
T & operator[] (unsigned int i)
 Bison undocumented. More...
 
const T & operator[] (unsigned int i) const
 Bison undocumented. More...
 
void push (const T &t)
 Bison undocumented. More...
 
void pop (unsigned int n=1)
 Bison undocumented. More...
 
unsigned int height () const
 Bison undocumented. More...
 
const_iterator begin () const
 Bison undocumented. More...
 
const_iterator end () const
 Bison undocumented. More...
 
 stack ()
 
 stack (unsigned int n)
 
T & operator[] (unsigned int i)
 
const T & operator[] (unsigned int i) const
 
void push (const T &t)
 
void pop (unsigned int n=1)
 
unsigned int height () const
 
const_iterator begin () const
 
const_iterator end () const
 

Private Attributes

seq_
 Bison undocumented. More...
 

Detailed Description

template<class T, class S = std::deque<T>>
class torc::stack< T, S >

Bison stack class.

Definition at line 43 of file bitstream/assembler/lut/stack.hh.

Member Typedef Documentation

template<class T, class S = std::deque<T>>
torc::stack< T, S >::const_iterator

Bison undocumented.

Definition at line 49 of file bitstream/assembler/lut/stack.hh.

template<class T, class S = std::deque<T>>
typedef S::const_reverse_iterator torc::stack< T, S >::const_iterator

Definition at line 49 of file physical/xdl/stack.hh.

template<class T, class S = std::deque<T>>
typedef S::reverse_iterator torc::stack< T, S >::iterator

Definition at line 48 of file physical/xdl/stack.hh.

template<class T, class S = std::deque<T>>
torc::stack< T, S >::iterator

Bison undocumented.

Definition at line 48 of file bitstream/assembler/lut/stack.hh.

Constructor & Destructor Documentation

template<class T, class S = std::deque<T>>
torc::stack< T, S >::stack ( )
inline

Definition at line 51 of file bitstream/assembler/lut/stack.hh.

51  : seq_ ()
52  {
53  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
torc::stack< T, S >::stack ( unsigned int  n)
inline

Bison undocumented.

Definition at line 55 of file bitstream/assembler/lut/stack.hh.

55  : seq_ (n)
56  {
57  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
torc::stack< T, S >::stack ( )
inline

Definition at line 51 of file physical/xdl/stack.hh.

51  : seq_ ()
52  {
53  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
torc::stack< T, S >::stack ( unsigned int  n)
inline

Definition at line 55 of file physical/xdl/stack.hh.

55  : seq_ (n)
56  {
57  }
S seq_
Bison undocumented.

Member Function Documentation

template<class T, class S = std::deque<T>>
const_iterator torc::stack< T, S >::begin ( void  ) const
inline

Bison undocumented.

Definition at line 95 of file bitstream/assembler/lut/stack.hh.

95 { return seq_.rbegin (); }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
const_iterator torc::stack< T, S >::begin ( void  ) const
inline

Definition at line 95 of file physical/xdl/stack.hh.

95 { return seq_.rbegin (); }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
const_iterator torc::stack< T, S >::end ( void  ) const
inline

Bison undocumented.

Definition at line 96 of file bitstream/assembler/lut/stack.hh.

96 { return seq_.rend (); }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
const_iterator torc::stack< T, S >::end ( void  ) const
inline

Definition at line 96 of file physical/xdl/stack.hh.

96 { return seq_.rend (); }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
unsigned int torc::stack< T, S >::height ( ) const
inline

Bison undocumented.

Definition at line 90 of file bitstream/assembler/lut/stack.hh.

91  {
92  return (int) seq_.size ();
93  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
unsigned int torc::stack< T, S >::height ( ) const
inline

Definition at line 90 of file physical/xdl/stack.hh.

91  {
92  return (int) seq_.size ();
93  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
T & torc::stack< T, S >::operator[] ( unsigned int  i)
inline

Bison undocumented.

Definition at line 61 of file bitstream/assembler/lut/stack.hh.

62  {
63  return seq_[i];
64  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
T& torc::stack< T, S >::operator[] ( unsigned int  i)
inline

Definition at line 61 of file physical/xdl/stack.hh.

62  {
63  return seq_[i];
64  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
const T& torc::stack< T, S >::operator[] ( unsigned int  i) const
inline

Definition at line 68 of file physical/xdl/stack.hh.

69  {
70  return seq_[i];
71  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
const T & torc::stack< T, S >::operator[] ( unsigned int  i) const
inline

Bison undocumented.

Definition at line 68 of file bitstream/assembler/lut/stack.hh.

69  {
70  return seq_[i];
71  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
void torc::stack< T, S >::pop ( unsigned int  n = 1)
inline

Bison undocumented.

Definition at line 82 of file bitstream/assembler/lut/stack.hh.

83  {
84  for (; n; --n)
85  seq_.pop_front ();
86  }
S seq_
Bison undocumented.

+ Here is the caller graph for this function:

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

Definition at line 82 of file physical/xdl/stack.hh.

83  {
84  for (; n; --n)
85  seq_.pop_front ();
86  }
S seq_
Bison undocumented.
template<class T, class S = std::deque<T>>
void torc::stack< T, S >::push ( const T &  t)
inline

Bison undocumented.

Definition at line 75 of file bitstream/assembler/lut/stack.hh.

76  {
77  seq_.push_front (t);
78  }
S seq_
Bison undocumented.

+ Here is the caller graph for this function:

template<class T, class S = std::deque<T>>
void torc::stack< T, S >::push ( const T &  t)
inline

Definition at line 75 of file physical/xdl/stack.hh.

76  {
77  seq_.push_front (t);
78  }
S seq_
Bison undocumented.

Field Documentation

template<class T, class S = std::deque<T>>
S torc::stack< T, S >::seq_
private

Bison undocumented.

Definition at line 100 of file bitstream/assembler/lut/stack.hh.


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