Flow123d
master-1edfbef2b
|
#include <format.h>
Public Member Functions | |
MemoryBuffer (const Allocator &alloc=Allocator()) | |
~MemoryBuffer () | |
Allocator | get_allocator () const |
Public Member Functions inherited from fmt::Buffer< T > | |
virtual | ~Buffer () |
std::size_t | size () const |
std::size_t | capacity () const |
void | resize (std::size_t new_size) |
void | reserve (std::size_t capacity) |
void | clear () FMT_NOEXCEPT |
void | push_back (const T &value) |
template<typename U > | |
void | append (const U *begin, const U *end) |
T & | operator[] (std::size_t index) |
const T & | operator[] (std::size_t index) const |
Protected Member Functions | |
void | grow (std::size_t size) |
Protected Member Functions inherited from fmt::Buffer< T > | |
Buffer (T *ptr=0, std::size_t capacity=0) | |
Private Member Functions | |
void | deallocate () |
Private Attributes | |
T | data_ [SIZE] |
Additional Inherited Members | |
Protected Attributes inherited from fmt::Buffer< T > | |
T * | ptr_ |
std::size_t | size_ |
std::size_t | capacity_ |
|
inlineexplicit |
|
inline |
|
inlineprivate |
|
inline |
|
protectedvirtual |
\rst Increases the buffer capacity to hold at least size elements updating ptr_
and capacity_
. \endrst
Implements fmt::Buffer< T >.
|
private |