![]() |
Home | Libraries | People | FAQ | More |
#include <base.hpp>
Inherits cb_iterator_registry.
Inherited by boost::circular_buffer_space_optimized< T, Alloc > [private].
Public Types | |
| typedef Alloc::value_type | value_type |
| The type of the elements stored in the circular buffer. | |
| typedef Alloc::pointer | pointer |
| Pointer to the element. | |
| typedef Alloc::const_pointer | const_pointer |
| Const pointer to the element. | |
| typedef Alloc::reference | reference |
| Reference to the element. | |
| typedef Alloc::const_reference | const_reference |
| Const reference to the element. | |
| typedef Alloc::difference_type | difference_type |
| Distance type. | |
| typedef Alloc::size_type | size_type |
| Size type. | |
| typedef Alloc | allocator_type |
| The type of the allocator used in the circular buffer. | |
| typedef cb_details::cb_iterator< circular_buffer< T, Alloc >, cb_details::cb_const_traits< Alloc > > | const_iterator |
| Const (random access) iterator used to iterate through a circular buffer. | |
| typedef cb_details::cb_iterator< circular_buffer< T, Alloc >, cb_details::cb_nonconst_traits< Alloc > > | iterator |
| Iterator (random access) used to iterate through a circular buffer. | |
| typedef reverse_iterator< const_iterator > | const_reverse_iterator |
| Const iterator used to iterate backwards through a circular buffer. | |
| typedef reverse_iterator< iterator > | reverse_iterator |
| Iterator used to iterate backwards through a circular buffer. | |
Public Member Functions | |
| allocator_type | get_allocator () const |
| Return the allocator. | |
| allocator_type & | get_allocator () |
| Return the allocator. | |
| iterator | begin () |
| Return an iterator pointing to the beginning of the circular buffer. | |
| iterator | end () |
| Return an iterator pointing to the end of the circular buffer. | |
| const_iterator | begin () const |
| Return a const iterator pointing to the beginning of the circular buffer. | |
| const_iterator | end () const |
| Return a const iterator pointing to the end of the circular buffer. | |
| reverse_iterator | rbegin () |
| Return a reverse iterator pointing to the beginning of the reversed circular buffer. | |
| reverse_iterator | rend () |
| Return a reverse iterator pointing to the end of the reversed circular buffer. | |
| const_reverse_iterator | rbegin () const |
| Return a const reverse iterator pointing to the beginning of the reversed circular buffer. | |
| const_reverse_iterator | rend () const |
| Return a const reverse iterator pointing to the end of the reversed circular buffer. | |
| reference | operator[] (size_type index) |
Return the element at the index position. | |
| return_value_type | operator[] (size_type index) const |
Return the element at the index position. | |
| reference | at (size_type index) |
Return the element at the index position. | |
| return_value_type | at (size_type index) const |
Return the element at the index position. | |
| reference | front () |
| Return the first (leftmost) element. | |
| reference | back () |
| Return the last (rightmost) element. | |
| return_value_type | front () const |
| Return the first (leftmost) element. | |
| return_value_type | back () const |
| Return the last (rightmost) element. | |
| pointer | data () |
| Return pointer to data stored in the circular buffer as a continuous array of values. | |
| size_type | size () const |
| Return the number of elements currently stored in the circular buffer. | |
| size_type | max_size () const |
| Return the largest possible size (or capacity) of the circular buffer. | |
| bool | empty () const |
| Is the circular buffer empty? | |
| bool | full () const |
| Is the circular buffer full? | |
| size_type | capacity () const |
| Return the capacity of the circular buffer. | |
| void | set_capacity (size_type new_capacity, bool remove_front=true) |
| Change the capacity of the circular buffer. | |
| void | resize (size_type new_size, param_value_type item=T(), bool remove_front=true) |
| Change the size of the circular buffer. | |
| circular_buffer (size_type capacity, const allocator_type &alloc=allocator_type()) | |
| Create an empty circular buffer with a given capacity. | |
| circular_buffer (size_type capacity, param_value_type item, const allocator_type &alloc=allocator_type()) | |
Create a full circular buffer with a given capacity and filled with copies of item. | |
| circular_buffer (const circular_buffer< T, Alloc > &cb) | |
| Copy constructor. | |
| template<class InputIterator> | circular_buffer (size_type capacity, InputIterator first, InputIterator last, const allocator_type &alloc=allocator_type()) |
| Create a circular buffer with a copy of a range. | |
| ~circular_buffer () | |
| Destructor. | |
| circular_buffer< T, Alloc > & | operator= (const circular_buffer< T, Alloc > &cb) |
| Assignment operator. | |
| void | assign (size_type n, param_value_type item) |
Assign n items into the circular buffer. | |
| template<class InputIterator> void | assign (InputIterator first, InputIterator last) |
| Assign a copy of range. | |
| void | swap (circular_buffer &cb) |
| Swap the contents of two circular buffers. | |
| void | push_back (param_value_type item) |
| Insert a new element at the end. | |
| void | push_back () |
| Insert a new element with the default value at the end. | |
| void | push_front (param_value_type item) |
| Insert a new element at the start. | |
| void | push_front () |
| Insert a new element with the default value at the start. | |
| void | pop_back () |
| Remove the last (rightmost) element. | |
| void | pop_front () |
| Remove the first (leftmost) element. | |
| iterator | insert (iterator pos, param_value_type item) |
Insert the item before the given position. | |
| iterator | insert (iterator pos) |
| Insert a new element with the default value before the given position. | |
| void | insert (iterator pos, size_type n, param_value_type item) |
Insert n copies of the item before the given position. | |
| template<class InputIterator> void | insert (iterator pos, InputIterator first, InputIterator last) |
Insert the range [first, last) before the given position. | |
| iterator | rinsert (iterator pos, param_value_type item) |
Insert an item before the given position. | |
| iterator | rinsert (iterator pos) |
| Insert a new element with the default value before the given position. | |
| void | rinsert (iterator pos, size_type n, param_value_type item) |
Insert n copies of the item before the given position. | |
| template<class InputIterator> void | rinsert (iterator pos, InputIterator first, InputIterator last) |
Insert the range [first, last) before the given position. | |
| iterator | erase (iterator pos) |
| Erase the element at the given position. | |
| iterator | erase (iterator first, iterator last) |
Erase the range [first, last). | |
| void | clear () |
| Erase all the stored elements. | |
| T | The type of the elements stored in the circular buffer. |
| Alloc | The allocator type used for all internal memory management. |
|
|||||
|
The type of the allocator used in the circular buffer.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Const (random access) iterator used to iterate through a circular buffer.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Const pointer to the element.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Const reference to the element.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Const iterator used to iterate backwards through a circular buffer.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Distance type. A signed integral type used to represent the distance between two iterators. Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Iterator (random access) used to iterate through a circular buffer.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Pointer to the element.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Reference to the element.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Iterator used to iterate backwards through a circular buffer.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
Size type. An unsigned integral type that can represent any nonnegative value of the container's distance type. Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||
|
The type of the elements stored in the circular buffer.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||||||||
|
Create an empty circular buffer with a given capacity.
|
|
||||||||||||||||||||
|
Create a full circular buffer with a given capacity and filled with copies of
|
|
||||||||||
|
Copy constructor.
|
|
||||||||||||||||||||||||||||
|
Create a circular buffer with a copy of a range.
|
|
|||||||||
|
Destructor.
|
|
||||||||||||||||||||
|
Assign a copy of range.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||||||||
|
Assign
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||
|
Return the element at the
|
|
||||||||||
|
Return the element at the
|
|
|||||||||
|
Return the last (rightmost) element.
|
|
|||||||||
|
Return the last (rightmost) element.
|
|
|||||||||
|
Return a const iterator pointing to the beginning of the circular buffer.
|
|
|||||||||
|
Return an iterator pointing to the beginning of the circular buffer.
|
|
|||||||||
|
Return the capacity of the circular buffer.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Erase all the stored elements.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Return pointer to data stored in the circular buffer as a continuous array of values. This method can be useful e.g. when passing the stored data into the legacy C API.
|
|
|||||||||
|
Is the circular buffer empty?
|
|
|||||||||
|
Return a const iterator pointing to the end of the circular buffer.
|
|
|||||||||
|
Return an iterator pointing to the end of the circular buffer.
|
|
||||||||||||||||
|
Erase the range
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||
|
Erase the element at the given position.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Return the first (leftmost) element.
|
|
|||||||||
|
Return the first (leftmost) element.
|
|
|||||||||
|
Is the circular buffer full?
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Return the allocator.
|
|
|||||||||
|
Return the allocator.
|
|
||||||||||||||||||||||||
|
Insert the range
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||||||||||||
|
Insert
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||
|
Insert a new element with the default value before the given position.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||||||||
|
Insert the
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Return the largest possible size (or capacity) of the circular buffer.
|
|
||||||||||
|
Assignment operator.
|
|
||||||||||
|
Return the element at the
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||
|
Return the element at the
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Remove the last (rightmost) element.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Remove the first (leftmost) element.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Insert a new element with the default value at the end.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||
|
Insert a new element at the end.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Insert a new element with the default value at the start.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||
|
Insert a new element at the start.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Return a const reverse iterator pointing to the beginning of the reversed circular buffer.
|
|
|||||||||
|
Return a reverse iterator pointing to the beginning of the reversed circular buffer.
|
|
|||||||||
|
Return a const reverse iterator pointing to the end of the reversed circular buffer.
|
|
|||||||||
|
Return a reverse iterator pointing to the end of the reversed circular buffer.
|
|
||||||||||||||||||||
|
Change the size of the circular buffer.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||||||||||||||||
|
Insert the range
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||||||||||||
|
Insert
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||
|
Insert a new element with the default value before the given position.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||||||||
|
Insert an
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
||||||||||||||||
|
Change the capacity of the circular buffer.
Reimplemented in boost::circular_buffer_space_optimized< T, Alloc >. |
|
|||||||||
|
Return the number of elements currently stored in the circular buffer.
|
|
||||||||||
|
Swap the contents of two circular buffers.
|
| Copyright © 2003-2004 Jan Gaspar | ![]() |
Generated by doxygen 1.3.5. |