#include <CTBstack.hxx>
Inheritance diagram for CTBstack:
Public Methods | |
CTBstack () | |
CTBstack (CTBint i_capacity) | |
CTBstack (const CTBstack< T > &rhs) | |
CTBstack (CTBstack< T > &rhs, bool b_grab) | |
T & | At (CTBint i_ind) |
const T & | At (CTBint i_ind) const |
void | Resize (CTBint i_size) |
void | Resize (CTBint i_size, const T &def) |
void | Insert (CTBint i_ind, const T &rhs) |
void | Remove (CTBint i_ind, T &rhs) |
void | Delete (CTBint i_ind) |
void | InsertHead (const T &rhs) |
bool | RemoveHead (T &rhs) |
void | InsertTail (const T &rhs) |
bool | RemoveTail (T &rhs) |
void | Push (const T &rhs) |
bool | Pop (T &rhs) |
void | Grab (CTBstack< T > &rhs) |
T & | operator[] (CTBint i_ind) |
const T & | operator[] (CTBint i_ind) const |
CTBstack< T > & | operator= (const T &rhs) |
CTBstack< T > & | operator= (const CTBstack< T > &rhs) |
CTBstack< T > & | operator<< (const T &rhs) |
CTBstack< T > & | operator>> (T &rhs) |
T()
T(const T&)
~T()
Definition at line 20 of file CTBstack.hxx.
|
Construct empty (size=0) stack.
Definition at line 28 of file CTBstack.icc. |
|
Construct empty stack with an initial capacity of i_capacity.
Definition at line 36 of file CTBstack.icc. |
|
Copy constructor.
Definition at line 46 of file CTBstack.icc. |
|
Definition at line 54 of file CTBstack.icc. |
|
Access vector element with index range check.
Reimplemented from CTBvector. Definition at line 65 of file CTBstack.icc. |
|
Constant access vector element with index range check.
Reimplemented from CTBvector. Definition at line 77 of file CTBstack.icc. |
|
Resize stack, adding or removing elements from the top of stack. This method pops elements from the stack if i_size is smaller than the current size and adds default constructed elements if i_size is larger than the current value. Reimplemented from CTBvector. Definition at line 91 of file CTBstack.icc. |
|
Resize stack, add elements with a value of def if needed. This method pops elements from the stack if i_size is smaller than the current size and adds elements initialized with a value of def if i_size is larger than the current value. Reimplemented from CTBvector. Definition at line 106 of file CTBstack.icc. |
|
Insert element.
Reimplemented from CTBvector. Definition at line 116 of file CTBstack.icc. |
|
Remove element.
Reimplemented from CTBvector. Definition at line 126 of file CTBstack.icc. |
|
Delete element.
Reimplemented from CTBvector. Definition at line 136 of file CTBstack.icc. |
|
Insert at begin (top) of stack.
Reimplemented from CTBvector. Definition at line 146 of file CTBstack.icc. Referenced by Push().
|
|
Remove from begin (top) of stack, returns
If the stack is not empty, the element at the begin (top) of the stack is copied to rhs and Reimplemented from CTBvector. Definition at line 161 of file CTBstack.icc. Referenced by Pop().
|
|
Insert at end (bottom) of stack.
Reimplemented from CTBvector. Definition at line 170 of file CTBstack.icc. |
|
Remove from end (bottom) of stack, returns
If the stack is not empty, the element at the end (bottom) of the stack is copied to rhs and Reimplemented from CTBvector. Definition at line 185 of file CTBstack.icc. |
|
Push rhs onto the stack, equivalent to
Definition at line 194 of file CTBstack.icc. Referenced by operator<<().
|
|
Pop element from top of stack, equivalent to
Definition at line 204 of file CTBstack.icc. Referenced by operator>>().
|
|
Grab resources. The resources allocated for rhs will be transfered to the calling object. Definition at line 216 of file CTBstack.icc. |
|
Access element.
Reimplemented from CTBvector. Definition at line 226 of file CTBstack.icc. |
|
Constant access element.
Reimplemented from CTBvector. Definition at line 235 of file CTBstack.icc. |
|
Set all elements to the scalar value rhs.
Reimplemented from CTBvector. |
|
|
|
Insert a new element with value rhs at top of stack.
Reimplemented from CTBvector. Definition at line 244 of file CTBstack.icc. |
|
Return top of stack as rhs, remove last element.
Reimplemented from CTBvector. Definition at line 254 of file CTBstack.icc. |