MPD
0.20.15
|
A reference to a memory area that is read-only. More...
#include <FlacPcm.hxx>
Public Types | |
typedef size_t | size_type |
typedef const T & | reference_type |
typedef reference_type | const_reference_type |
typedef const T * | pointer_type |
typedef pointer_type | const_pointer_type |
typedef pointer_type | iterator |
typedef pointer_type | const_iterator |
Public Member Functions | |
ConstBuffer ()=default | |
constexpr | ConstBuffer (std::nullptr_t) |
constexpr | ConstBuffer (pointer_type _data, size_type _size) |
constexpr ConstBuffer< void > | ToVoid () const |
constexpr bool | IsNull () const |
constexpr bool | IsEmpty () const |
template<typename U > | |
gcc_pure bool | Contains (U &&u) const noexcept |
constexpr iterator | begin () const |
constexpr iterator | end () const |
constexpr const_iterator | cbegin () const |
constexpr const_iterator | cend () const |
reference_type | operator[] (size_type i) const |
reference_type | front () const |
Returns a reference to the first element. More... | |
reference_type | back () const |
Returns a reference to the last element. More... | |
void | pop_front () |
Remove the first element (by moving the head pointer, does not actually modify the buffer). More... | |
void | pop_back () |
Remove the last element (by moving the tail pointer, does not actually modify the buffer). More... | |
reference_type | shift () |
Remove the first element and return a reference to it. More... | |
void | skip_front (size_type n) |
void | MoveFront (pointer_type new_data) |
Move the front pointer to the given address, and adjust the size attribute to retain the old end address. More... | |
Static Public Member Functions | |
static constexpr ConstBuffer | Null () |
static ConstBuffer< T > | FromVoid (ConstBuffer< void > other) |
Cast a ConstBuffer<void> to a ConstBuffer<T>. More... | |
Data Fields | |
pointer_type | data |
size_type | size |
A reference to a memory area that is read-only.
Definition at line 29 of file FlacPcm.hxx.
typedef pointer_type ConstBuffer< T >::const_iterator |
Definition at line 94 of file ConstBuffer.hxx.
typedef pointer_type ConstBuffer< T >::const_pointer_type |
Definition at line 92 of file ConstBuffer.hxx.
typedef reference_type ConstBuffer< T >::const_reference_type |
Definition at line 90 of file ConstBuffer.hxx.
typedef pointer_type ConstBuffer< T >::iterator |
Definition at line 93 of file ConstBuffer.hxx.
typedef const T* ConstBuffer< T >::pointer_type |
Definition at line 91 of file ConstBuffer.hxx.
typedef const T& ConstBuffer< T >::reference_type |
Definition at line 89 of file ConstBuffer.hxx.
typedef size_t ConstBuffer< T >::size_type |
Definition at line 88 of file ConstBuffer.hxx.
|
default |
|
inline |
Definition at line 101 of file ConstBuffer.hxx.
|
inline |
Definition at line 103 of file ConstBuffer.hxx.
|
inline |
Returns a reference to the last element.
Buffer must not be empty.
Definition at line 199 of file ConstBuffer.hxx.
|
inline |
Definition at line 151 of file ConstBuffer.hxx.
|
inline |
Definition at line 159 of file ConstBuffer.hxx.
|
inline |
Definition at line 163 of file ConstBuffer.hxx.
|
inlinenoexcept |
Definition at line 143 of file ConstBuffer.hxx.
|
inline |
Definition at line 155 of file ConstBuffer.hxx.
|
inlinestatic |
Cast a ConstBuffer<void> to a ConstBuffer<T>.
A "void" buffer records its size in bytes, and when casting to "T", the assertion below ensures that the size is a multiple of sizeof(T).
Definition at line 119 of file ConstBuffer.hxx.
|
inline |
Returns a reference to the first element.
Buffer must not be empty.
Definition at line 185 of file ConstBuffer.hxx.
|
inline |
Definition at line 137 of file ConstBuffer.hxx.
|
inline |
Definition at line 133 of file ConstBuffer.hxx.
|
inline |
Move the front pointer to the given address, and adjust the size attribute to retain the old end address.
Definition at line 254 of file ConstBuffer.hxx.
|
inlinestatic |
Definition at line 106 of file ConstBuffer.hxx.
|
inline |
Definition at line 170 of file ConstBuffer.hxx.
|
inline |
Remove the last element (by moving the tail pointer, does not actually modify the buffer).
Buffer must not be empty.
Definition at line 223 of file ConstBuffer.hxx.
|
inline |
Remove the first element (by moving the head pointer, does not actually modify the buffer).
Buffer must not be empty.
Definition at line 210 of file ConstBuffer.hxx.
|
inline |
Remove the first element and return a reference to it.
Buffer must not be empty.
Definition at line 235 of file ConstBuffer.hxx.
|
inline |
Definition at line 241 of file ConstBuffer.hxx.
|
inline |
Definition at line 128 of file ConstBuffer.hxx.
pointer_type ConstBuffer< T >::data |
Definition at line 96 of file ConstBuffer.hxx.
size_type ConstBuffer< T >::size |
Definition at line 97 of file ConstBuffer.hxx.