3.0.0
|
|
Freundlich's C++ toolkit |
A contiguous container for uninitialized data that contains a write and a read area.
T | Must be a POD type. |
A | The allocator type. |
See the module documentation for more information.
Public Types | |
typedef T | value_type |
typedef A | allocator_type |
typedef A::size_type | size_type |
typedef A::pointer | pointer |
typedef A::const_pointer | const_pointer |
typedef A::const_reference | const_reference |
typedef A::const_pointer | const_iterator |
Public Member Functions | |
object (size_type write_sz, A a=A()) | |
Constructs an uninitialized buffer. More... | |
object (object &&) noexcept | |
object & | operator= (object &&) noexcept |
~object () noexcept | |
const_iterator | begin () const noexcept |
The beginning of the read area. More... | |
const_iterator | end () const noexcept |
The end of the read area. More... | |
const_reference | operator[] (size_type) const noexcept |
The read area at a given position. More... | |
const_pointer | read_data () const noexcept |
The beginning of the read area. More... | |
const_pointer | read_data_end () const noexcept |
The end of the read area. More... | |
pointer | write_data () noexcept |
The beginning of the write area. More... | |
pointer | write_data_end () noexcept |
The end of the write area. More... | |
size_type | read_size () const noexcept |
The size of the read area. More... | |
size_type | write_size () const noexcept |
The size of the write area. More... | |
void | written (size_type sz) noexcept |
Adds to the read area. More... | |
void | resize_write_area (size_type sz) |
Resizes the write area. More... | |
allocator_type | get_allocator () const |
void | swap (object &) noexcept |
fcppt::container::raw_vector::rep< A > | release () noexcept |
Releases the storage. More... | |
typedef A fcppt::container::buffer::object< T, A >::allocator_type |
typedef A::const_pointer fcppt::container::buffer::object< T, A >::const_iterator |
typedef A::const_pointer fcppt::container::buffer::object< T, A >::const_pointer |
typedef A::const_reference fcppt::container::buffer::object< T, A >::const_reference |
typedef A::pointer fcppt::container::buffer::object< T, A >::pointer |
typedef A::size_type fcppt::container::buffer::object< T, A >::size_type |
typedef T fcppt::container::buffer::object< T, A >::value_type |
|
explicit |
Constructs an uninitialized buffer.
Constructs a buffer with a write area of size sz.
|
noexcept |
|
noexcept |
|
noexcept |
The beginning of the read area.
|
noexcept |
The end of the read area.
allocator_type fcppt::container::buffer::object< T, A >::get_allocator | ( | ) | const |
|
noexcept |
|
noexcept |
The read area at a given position.
|
noexcept |
The beginning of the read area.
|
noexcept |
The end of the read area.
|
noexcept |
The size of the read area.
|
noexcept |
Releases the storage.
void fcppt::container::buffer::object< T, A >::resize_write_area | ( | size_type | sz | ) |
Resizes the write area.
Sets the size of the write area to sz.
|
noexcept |
|
noexcept |
The beginning of the write area.
|
noexcept |
The end of the write area.
|
noexcept |
The size of the write area.
|
noexcept |
Adds to the read area.
Adds sz elements to the read area. This function should be called after data has been read into the write area.