STXXL  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ > Class Template Reference

Detailed Description

template<typename Tp_, unsigned_type max_size_>
class stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >

Similar to std::stack, with the following differences:

  • Maximum size is fixed at compilation time, so an array can be used.
  • Can be cleared "at once", without reallocation.

Definition at line 210 of file pq_helpers.h.

+ Inheritance diagram for stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >:

Public Member Functions

 internal_bounded_stack ()
 
void clear ()
 
bool empty () const
 
void pop ()
 
void push (const value_type &x)
 
size_type size () const
 
const value_typetop () const
 

Private Types

enum  { max_size = max_size_ }
 
typedef unsigned_type size_type
 
typedef Tp_ value_type
 

Private Attributes

value_type array [max_size]
 
size_type size_
 

Member Typedef Documentation

template<typename Tp_, unsigned_type max_size_>
typedef unsigned_type stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >::size_type
private

Definition at line 213 of file pq_helpers.h.

template<typename Tp_, unsigned_type max_size_>
typedef Tp_ stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >::value_type
private

Definition at line 212 of file pq_helpers.h.

Member Enumeration Documentation

template<typename Tp_, unsigned_type max_size_>
anonymous enum
private
Enumerator
max_size 

Definition at line 214 of file pq_helpers.h.

Constructor & Destructor Documentation

template<typename Tp_, unsigned_type max_size_>
stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >::internal_bounded_stack ( )
inline

Definition at line 220 of file pq_helpers.h.

Member Function Documentation

template<typename Tp_, unsigned_type max_size_>
void stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >::clear ( )
inline
template<typename Tp_, unsigned_type max_size_>
void stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >::pop ( )
inline
template<typename Tp_, unsigned_type max_size_>
const value_type& stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >::top ( ) const
inline

Member Data Documentation

template<typename Tp_, unsigned_type max_size_>
value_type stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >::array[max_size]
private

Definition at line 217 of file pq_helpers.h.

template<typename Tp_, unsigned_type max_size_>
size_type stxxl::priority_queue_local::internal_bounded_stack< Tp_, max_size_ >::size_
private

Definition at line 216 of file pq_helpers.h.


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