ACE_Fixed_Stack< T, ACE_SIZE > Class Template ReferenceImplement a generic LIFO abstract data type. More...
Collaboration diagram for ACE_Fixed_Stack< T, ACE_SIZE >:
![]()
Detailed Descriptiontemplate<class T, size_t ACE_SIZE>
Implement a generic LIFO abstract data type.
|
ACE_Fixed_Stack< T, ACE_SIZE >::ACE_Fixed_Stack | ( | void | ) | [inline] |
Initialize a new stack so that it is empty.
Initialize an empty stack.
ACE_Fixed_Stack< T, ACE_SIZE >::ACE_Fixed_Stack | ( | const ACE_Fixed_Stack< T, ACE_SIZE > & | s | ) | [inline] |
The copy constructor (performs initialization).
Initialize the stack and copy the provided stack into the current stack.
ACE_Fixed_Stack< T, ACE_SIZE >::~ACE_Fixed_Stack | ( | void | ) | [inline] |
Perform actions needed when stack goes out of scope.
Destroy the stack.
void ACE_Fixed_Stack< T, ACE_SIZE >::operator= | ( | const ACE_Fixed_Stack< T, ACE_SIZE > & | s | ) | [inline] |
Assignment operator (performs assignment).
Perform a deep copy of the provided stack.
ACE_INLINE int ACE_Fixed_Stack< T, ACE_SIZE >::push | ( | const T & | new_item | ) | [inline] |
Constant time placement of element on top of stack.
Place a new item on top of the stack. Returns -1 if the stack is already full, 0 if the stack is not already full, and -1 if failure occurs.
ACE_INLINE int ACE_Fixed_Stack< T, ACE_SIZE >::pop | ( | T & | item | ) | [inline] |
Constant time removal of top of stack.
Remove and return the top stack item. Returns -1 if the stack is already empty, 0 if the stack is not already empty, and -1 if failure occurs.
ACE_INLINE int ACE_Fixed_Stack< T, ACE_SIZE >::top | ( | T & | item | ) | const [inline] |
Constant time examination of top of stack.
Return top stack item without removing it. Returns -1 if the stack is already empty, 0 if the stack is not already empty, and -1 if failure occurs.
ACE_INLINE int ACE_Fixed_Stack< T, ACE_SIZE >::is_empty | ( | void | ) | const [inline] |
Returns 1 if the container is empty, otherwise returns 0.
Performs constant time check to see if stack is empty.
ACE_INLINE int ACE_Fixed_Stack< T, ACE_SIZE >::is_full | ( | void | ) | const [inline] |
Returns 1 if the container is full, otherwise returns 0.
Performs constant time check to see if stack is full.
ACE_INLINE size_t ACE_Fixed_Stack< T, ACE_SIZE >::size | ( | void | ) | const [inline] |
The number of items in the stack.
Constant time access to the current size of the stack.
void ACE_Fixed_Stack< T, ACE_SIZE >::dump | ( | void | ) | const [inline] |
Dump the state of an object.
ACE_Fixed_Stack< T, ACE_SIZE >::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
size_t ACE_Fixed_Stack< T, ACE_SIZE >::size_ [private] |
Size of the allocated data.
size_t ACE_Fixed_Stack< T, ACE_SIZE >::top_ [private] |
Keeps track of the current top of stack.
T ACE_Fixed_Stack< T, ACE_SIZE >::stack_[ACE_SIZE] [private] |
Holds the stack's contents.