Stxxl
1.4.0
|
Efficient implementation that uses prefetching and overlapping using internal buffers. More...
#include <stack.h>
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
.
typedef cfg::alloc_strategy stxxl::grow_shrink_stack< Config_ >::alloc_strategy_type |
typedef BID<block_size> stxxl::grow_shrink_stack< Config_ >::bid_type |
typedef typed_block<block_size, value_type> stxxl::grow_shrink_stack< Config_ >::block_type |
typedef Config_ stxxl::grow_shrink_stack< Config_ >::cfg |
typedef cfg::size_type stxxl::grow_shrink_stack< Config_ >::size_type |
typedef cfg::value_type stxxl::grow_shrink_stack< Config_ >::value_type |
anonymous enum |
stxxl::grow_shrink_stack< Config_ >::grow_shrink_stack | ( | ) | [inline] |
stxxl::grow_shrink_stack< Config_ >::grow_shrink_stack | ( | const stack_type & | stack_ | ) | [inline] |
virtual stxxl::grow_shrink_stack< Config_ >::~grow_shrink_stack | ( | ) | [inline, virtual] |
Definition at line 343 of file stack.h.
References STXXL_PRETTY_FUNCTION_NAME, and stxxl::wait_all().
bool stxxl::grow_shrink_stack< Config_ >::empty | ( | ) | const [inline] |
void stxxl::grow_shrink_stack< Config_ >::pop | ( | ) | [inline] |
Definition at line 412 of file stack.h.
References std::swap(), UNLIKELY, and stxxl::wait_all().
void stxxl::grow_shrink_stack< Config_ >::push | ( | const value_type & | val | ) | [inline] |
Definition at line 373 of file stack.h.
References std::swap(), and UNLIKELY.
size_type stxxl::grow_shrink_stack< Config_ >::size | ( | ) | const [inline] |
void stxxl::grow_shrink_stack< Config_ >::swap | ( | grow_shrink_stack< Config_ > & | obj | ) | [inline] |
Definition at line 300 of file stack.h.
References stxxl::grow_shrink_stack< Config_ >::alloc_strategy, stxxl::grow_shrink_stack< Config_ >::bids, stxxl::grow_shrink_stack< Config_ >::cache, stxxl::grow_shrink_stack< Config_ >::cache_buffers, stxxl::grow_shrink_stack< Config_ >::cache_offset, stxxl::grow_shrink_stack< Config_ >::current_element, stxxl::grow_shrink_stack< Config_ >::overlap_buffers, stxxl::grow_shrink_stack< Config_ >::requests, stxxl::grow_shrink_stack< Config_ >::size_, and std::swap().
Referenced by std::swap().
value_type& stxxl::grow_shrink_stack< Config_ >::top | ( | ) | [inline] |
const value_type& stxxl::grow_shrink_stack< Config_ >::top | ( | ) | const [inline] |
alloc_strategy_type stxxl::grow_shrink_stack< Config_ >::alloc_strategy [private] |
Definition at line 284 of file stack.h.
Referenced by stxxl::grow_shrink_stack< Config_ >::swap().
std::vector<bid_type> stxxl::grow_shrink_stack< Config_ >::bids [private] |
Definition at line 283 of file stack.h.
Referenced by stxxl::grow_shrink_stack< Config_ >::swap().
simple_vector<block_type> stxxl::grow_shrink_stack< Config_ >::cache [private] |
Definition at line 279 of file stack.h.
Referenced by stxxl::grow_shrink_stack< Config_ >::swap().
simple_vector<block_type>::iterator stxxl::grow_shrink_stack< Config_ >::cache_buffers [private] |
Definition at line 280 of file stack.h.
Referenced by stxxl::grow_shrink_stack< Config_ >::swap().
unsigned_type stxxl::grow_shrink_stack< Config_ >::cache_offset [private] |
Definition at line 277 of file stack.h.
Referenced by stxxl::grow_shrink_stack< Config_ >::swap().
value_type* stxxl::grow_shrink_stack< Config_ >::current_element [private] |
Definition at line 278 of file stack.h.
Referenced by stxxl::grow_shrink_stack< Config_ >::swap().
simple_vector<block_type>::iterator stxxl::grow_shrink_stack< Config_ >::overlap_buffers [private] |
Definition at line 281 of file stack.h.
Referenced by stxxl::grow_shrink_stack< Config_ >::swap().
simple_vector<request_ptr> stxxl::grow_shrink_stack< Config_ >::requests [private] |
Definition at line 282 of file stack.h.
Referenced by stxxl::grow_shrink_stack< Config_ >::swap().
size_type stxxl::grow_shrink_stack< Config_ >::size_ [private] |
Definition at line 276 of file stack.h.
Referenced by stxxl::grow_shrink_stack< Config_ >::swap().