STXXL
1.4-dev
|
A deque container.
Introduction to deque container: see STXXL Deque tutorial.
Design and Internals of deque container: see Deque.
It is an adaptor of the VectorType
. The implementation wraps the elements around the end of the VectorType
circularly.
ValueType | type of the contained objects (POD with no references to internal memory) |
VectorType | the type of the underlying vector container, the default is stxxl::vector<ValueType> |
Public Types | |
typedef const_deque_iterator < self_type > | const_iterator |
typedef const value_type * | const_pointer |
typedef const ValueType & | const_reference |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef VectorType::difference_type | difference_type |
typedef deque_iterator< self_type > | iterator |
typedef ValueType * | pointer |
typedef ValueType & | reference |
typedef std::reverse_iterator < iterator > | reverse_iterator |
typedef VectorType::size_type | size_type |
typedef ValueType | value_type |
typedef VectorType | vector_type |
Public Member Functions | |
Constructors/Destructors | |
deque () | |
deque (size_type n) | |
~deque () | |
Iterators | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | cbegin () const |
const_iterator | end () const |
const_iterator | cend () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | crbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
const_reverse_iterator | crend () const |
Capacity | |
size_type | size () const |
size_type | max_size () const |
bool | empty () const |
void | resize (size_type n) |
Operators | |
reference | operator[] (size_type n) |
const_reference | operator[] (size_type n) const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
Modifiers | |
void | push_front (const value_type &el) |
void | push_back (const value_type &el) |
void | pop_front () |
void | pop_back () |
void | swap (deque &obj) |
void | clear () |
Private Types | |
typedef deque< ValueType, VectorType > | self_type |
Private Member Functions | |
void | double_array () |
Private Member Functions inherited from stxxl::noncopyable | |
noncopyable () | |
Private Attributes | |
size_type | m_begin |
size_type | m_end |
size_type | m_size |
vector_type | m_vector |
typedef const_deque_iterator<self_type> stxxl::deque< ValueType, VectorType >::const_iterator |
typedef const value_type* stxxl::deque< ValueType, VectorType >::const_pointer |
typedef const ValueType& stxxl::deque< ValueType, VectorType >::const_reference |
typedef std::reverse_iterator<const_iterator> stxxl::deque< ValueType, VectorType >::const_reverse_iterator |
typedef VectorType::difference_type stxxl::deque< ValueType, VectorType >::difference_type |
typedef deque_iterator<self_type> stxxl::deque< ValueType, VectorType >::iterator |
typedef ValueType* stxxl::deque< ValueType, VectorType >::pointer |
typedef ValueType& stxxl::deque< ValueType, VectorType >::reference |
typedef std::reverse_iterator<iterator> stxxl::deque< ValueType, VectorType >::reverse_iterator |
|
private |
typedef VectorType::size_type stxxl::deque< ValueType, VectorType >::size_type |
typedef ValueType stxxl::deque< ValueType, VectorType >::value_type |
typedef VectorType stxxl::deque< ValueType, VectorType >::vector_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 650 of file deque.h.
References STXXL_DEFAULT_BLOCK_SIZE.
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 664 of file deque.h.
References stxxl::pop_back().
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |