Flow123d
release_3.0.0-1073-g8f35d56
|
#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 |
Increases the buffer capacity to hold at least size elements updating ptr_
and capacity_
.
Implements fmt::Buffer< T >.
|
private |