#include <core.h>
Public Types | |
| typedef T | value_type |
| typedef const T & | const_reference |
Public Member Functions | |
| virtual | ~basic_buffer () |
| T * | begin () FMT_NOEXCEPT |
| T * | end () FMT_NOEXCEPT |
| std::size_t | size () const FMT_NOEXCEPT |
| std::size_t | capacity () const FMT_NOEXCEPT |
| T * | data () FMT_NOEXCEPT |
| const T * | data () const FMT_NOEXCEPT |
| void | resize (std::size_t new_size) |
| void | clear () |
| void | reserve (std::size_t new_capacity) |
| 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 | |
| basic_buffer (std::size_t sz) FMT_NOEXCEPT | |
| basic_buffer (T *p=FMT_NULL, std::size_t sz=0, std::size_t cap=0) FMT_NOEXCEPT | |
| void | set (T *buf_data, std::size_t buf_capacity) FMT_NOEXCEPT |
| virtual void | grow (std::size_t capacity)=0 |
Private Member Functions | |
| basic_buffer (const basic_buffer &)=delete | |
| void | operator= (const basic_buffer &)=delete |
Private Attributes | |
| T * | ptr_ |
| std::size_t | size_ |
| std::size_t | capacity_ |
A contiguous memory buffer with an optional growing ability.
| typedef const T& internal::basic_buffer< T >::const_reference |
| typedef T internal::basic_buffer< T >::value_type |
|
privatedelete |
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
| void internal::basic_buffer< T >::append | ( | const U * | begin, |
| const U * | end | ||
| ) |
Appends data to the end of the buffer.
Definition at line 394 of file format.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
Increases the buffer capacity to hold at least capacity elements.
Implemented in basic_memory_buffer< T, SIZE, Allocator >, basic_memory_buffer< Char >, and internal::container_buffer< Container >.
|
privatedelete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
private |
|
private |
|
private |
1.8.11