Stxxl  1.2.1
Public Member Functions | List of all members
grow_shrink_stack< Config_ > Class Template Reference

Efficient implementation that uses prefetching and overlapping using internal buffers. More...

#include <stack.h>

Inherits noncopyable.

Public Member Functions

template<class stack_type >
 grow_shrink_stack (const stack_type &stack_)
 Construction from a stack.

Detailed Description

template<class Config_>
class grow_shrink_stack< Config_ >

Efficient implementation that uses prefetching and overlapping using internal buffers.

Use it if your access pattern consists of many repeated push'es and pop's For semantics of the methods see documentation of the STL std::stack.

Warning
The amortized complexity of operation is not O(1/DB), rather O(DB)

Constructor & Destructor Documentation

template<class Config_ >
template<class stack_type >
grow_shrink_stack< Config_ >::grow_shrink_stack ( const stack_type &  stack_)
inline

Construction from a stack.

Parameters
stack_stack object (could be external or internal, important is that it must have a copy constructor, top() and pop() methods )

The documentation for this class was generated from the following file: