|
Aprepro
5.0x
|
A stack with random access from its top. More...
Classes | |
| class | slice |
| Present a slice of the top of a stack. More... | |
Public Types | |
| typedef S::reverse_iterator | iterator |
| typedef S::const_reverse_iterator | const_iterator |
| typedef S::size_type | size_type |
Public Member Functions | |
| stack (size_type n=200) | |
| T & | operator[] (size_type i) |
| T & | operator[] (int i) |
| const T & | operator[] (size_type i) const |
| const T & | operator[] (int i) const |
| void | push (YY_MOVE_REF(T) t) |
| void | pop (int n=1) YY_NOEXCEPT |
| Pop elements from the stack. More... | |
| void | clear () YY_NOEXCEPT |
| Pop all elements from the stack. More... | |
| size_type | size () const YY_NOEXCEPT |
| Number of elements on the stack. More... | |
| const_iterator | begin () const YY_NOEXCEPT |
| Iterator on top of the stack (going downwards). More... | |
| const_iterator | end () const YY_NOEXCEPT |
| Bottom of the stack. More... | |
Private Member Functions | |
| stack (const stack &) | |
| stack & | operator= (const stack &) |
Private Attributes | |
| S | seq_ |
| The wrapped container. More... | |
A stack with random access from its top.
| typedef S::const_reverse_iterator SEAMS::Parser::stack< T, S >::const_iterator |
| typedef S::reverse_iterator SEAMS::Parser::stack< T, S >::iterator |
| typedef S::size_type SEAMS::Parser::stack< T, S >::size_type |
|
inline |
|
private |
|
inline |
Iterator on top of the stack (going downwards).
|
inline |
Pop all elements from the stack.
|
inline |
Bottom of the stack.
|
private |
|
inline |
Random access.
Index 0 returns the topmost element.
|
inline |
Random access.
Index 0 returns the topmost element.
|
inline |
Random access.
Index 0 returns the topmost element.
|
inline |
Random access.
Index 0 returns the topmost element.
|
inline |
Pop elements from the stack.
|
inline |
Steal the contents of t.
Close to move-semantics.
|
inline |
Number of elements on the stack.
|
private |
The wrapped container.