a set of elements, following the last-in first-out (LIFO) principle the access to or the deletion of an element is restricted to the most recently inserted element.
#include <bstack.h>
Inheritance diagram for ABA_BSTACK< Type >::
|
Accesses like top() the last element pushed on the stack and removes in addition this item from the stack.
The output operator writes the numbers of all stacked elements and the elements line by line on an output stream.
a set of elements, following the last-in first-out (LIFO) principle the access to or the deletion of an element is restricted to the most recently inserted element.
Definition at line 56 of file bstack.h.
The constructor initializes an empty stack.
The maximal number of elements which can be inserted into the stack.
The top of the stack, i.e., the number of the next free component of the stack. This is also the number of elements currently contained in the stack since the first element is inserted in position 0.
true If there is no element in the stack,
false otherwise.
true If the maximal number of elements has been inserted in the stack,
false otherwise.
Adds an element to the stack.
It is a fatal error to insert an element if the stack is full. If this function is compiled with -DABACUSSAFE, then the program terminates if this error occurs.
Accesses the last element pushed on the stack without removing it.
It is an error to perform this operation on an empty stack. If this function is compiled with -DABACUSSAFE, then the program terminates if this error occurs.
The last element pushed on the stack.
Accesses like top() the last element pushed on the stack and removes in addition this item from the stack.
It is an error to perform this operation on an empty stack. If this function is compiled with -DABACUSSAFE, then the program terminates if this error occurs.
The last element pushed on the stack.
Changes the maximal number of elements of the stack.
The output operator writes the numbers of all stacked elements and the elements line by line on an output stream.
A reference to the output stream.
A pointer to the corresponding global object.
Definition at line 157 of file bstack.h.
The array storing the elements of the stack.
Definition at line 161 of file bstack.h.
The top of stack (next free component).
Definition at line 165 of file bstack.h.
The documentation for this class was generated from the following file: