An implementation of an external-memory stack compatible with the old AMI interface.
More...
|
| | stack () |
| | Initializes the stack. More...
|
| |
| | stack (const std::string &path, stream_type type=READ_WRITE_STREAM) |
| | Initializes the stack by (re-)opening the file given. More...
|
| |
| err | push (const T &t) |
| | Pushes one item onto the stack. More...
|
| |
| err | pop (const T **t) |
| | Pops one item from the stack. More...
|
| |
| err | peek (const T **t) |
| | Peeks at the topmost item on the stack. More...
|
| |
| TPIE_OS_OFFSET | size () const |
| | Returns the number of items currently on the stack. More...
|
| |
| bool | is_empty () const |
| | Returns whether the stack is empty or not. More...
|
| |
| void | persist (persistence p) |
| | Set the persistence status of the (stream underlying the) stack. More...
|
| |
| persistence | persist () const |
| | Returns the persistence status of the (stream underlying the) stack. More...
|
| |
| err | trim () |
| | Truncates the underlying stream to the exact size (rounded up to the next block) of items. More...
|
| |
| err | main_memory_usage (TPIE_OS_SIZE_T *usage, stream_usage usage_type) const |
| | Compute the memory used by the stack and the aggregated stream. More...
|
| |
| TPIE_OS_OFFSET | stream_len () const |
| |
|
tpie::stack< T > & | underlying_stack () |
| |
template<class T>
class tpie::ami::stack< T >
An implementation of an external-memory stack compatible with the old AMI interface.
Definition at line 180 of file stack.h.