|
Roboruka
Knihovna pro obsluhu RoboRuky.
|
#include <core.h>
Veřejné metody | |
| 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) |
| template<typename U > | |
| void | append (const U *begin, const U *end) |
Chráněné metody | |
| void | set (T *buf_data, std::size_t buf_capacity) FMT_NOEXCEPT |
| virtual void | grow (std::size_t capacity)=0 |
A contiguous memory buffer with an optional growing ability.
| void internal::buffer< T >::append | ( | const U * | begin, |
| const U * | end | ||
| ) |
Appends data to the end of the buffer.
|
inline |
Returns the capacity of this buffer.
|
inline |
Clears this buffer.
|
inline |
Returns a pointer to the buffer data.
|
inline |
Returns a pointer to the buffer data.
|
protectedpure virtual |
Increases the buffer capacity to hold at least capacity elements.
Implementováno v basic_memory_buffer< T, SIZE, Allocator >, basic_memory_buffer< bigit, bigits_capacity > a basic_memory_buffer< wchar_t >.
|
inline |
Reserves space to store at least capacity elements.
|
inline |
Resizes the buffer. If T is a POD type new elements may not be initialized.
|
inlineprotected |
Sets the buffer data and capacity.
|
inline |
Returns the size of this buffer.