![]() |
Rosetta
2019.31
|
#include <format.h>

Public Member Functions | |
| 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 | |
| Buffer (T *ptr=FMT_NULL, std::size_t capacity=0) | |
| virtual void | grow (std::size_t size)=0 |
Protected Attributes | |
| T * | ptr_ |
| std::size_t | size_ |
| std::size_t | capacity_ |
Private Member Functions | |
| FMT_DISALLOW_COPY_AND_ASSIGN (Buffer) | |
A buffer supporting a subset of std::vector's operations.
|
inlineprotected |
|
inlinevirtual |
| void fmt::Buffer< T >::append | ( | const U * | begin, |
| const U * | end | ||
| ) |
Appends data to the end of the buffer.
References fmt::internal::make_ptr(), and fmt::internal::to_unsigned().
Referenced by fmt::BasicWriter< Char >::operator<<().
|
inline |
Returns the capacity of this buffer.
Referenced by fmt::BasicWriter< Char >::write_double().
|
inline |
|
private |
|
protectedpure virtual |
Increases the buffer capacity to hold at least size elements updating ptr_ and capacity_.
Implemented in fmt::internal::FixedBuffer< Char >, fmt::internal::MemoryBuffer< T, SIZE, Allocator >, and fmt::internal::MemoryBuffer< Char, internal::INLINE_BUFFER_SIZE, Allocator >.
|
inline |
|
inline |
|
inline |
Referenced by fmt::BasicWriter< Char >::operator<<().
|
inline |
Reserves space to store at least capacity elements.
Referenced by fmt::BasicWriter< Char >::c_str(), fmt::BasicWriter< Char >::prepare_int_buffer(), and fmt::BasicWriter< Char >::write_double().
|
inline |
Resizes the buffer. If T is a POD type new elements may not be initialized.
Referenced by fmt::format_system_error(), and fmt::BasicWriter< Char >::grow_buffer().
|
inline |
Returns the size of this buffer.
Referenced by fmt::BasicWriter< Char >::c_str(), fmt::format_system_error(), fmt::BasicWriter< Char >::grow_buffer(), fmt::BasicWriter< Char >::size(), and fmt::BasicWriter< Char >::write_double().
|
protected |
|
protected |
|
protected |
1.8.7