Roboruka
Knihovna pro obsluhu RoboRuky.
Veřejné metody | Chráněné metody | Seznam všech členů
Dokumentace šablony třídy internal::buffer< T >abstract

#include <core.h>

Diagram dědičnosti pro třídu internal::buffer< T >:
basic_memory_buffer< T, SIZE, Allocator >

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
 

Detailní popis

template<typename T>
class internal::buffer< T >

A contiguous memory buffer with an optional growing ability.

Dokumentace k metodám

◆ append()

template<typename T >
template<typename U >
void internal::buffer< T >::append ( const U *  begin,
const U *  end 
)

Appends data to the end of the buffer.

◆ capacity()

template<typename T >
std::size_t internal::buffer< T >::capacity ( ) const
inline

Returns the capacity of this buffer.

◆ clear()

template<typename T >
void internal::buffer< T >::clear ( )
inline

Clears this buffer.

◆ data() [1/2]

template<typename T >
const T * internal::buffer< T >::data ( ) const
inline

Returns a pointer to the buffer data.

◆ data() [2/2]

template<typename T >
T * internal::buffer< T >::data ( )
inline

Returns a pointer to the buffer data.

◆ grow()

template<typename T >
virtual void internal::buffer< T >::grow ( std::size_t  capacity)
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 >.

◆ reserve()

template<typename T >
void internal::buffer< T >::reserve ( std::size_t  new_capacity)
inline

Reserves space to store at least capacity elements.

◆ resize()

template<typename T >
void internal::buffer< T >::resize ( std::size_t  new_size)
inline

Resizes the buffer. If T is a POD type new elements may not be initialized.

◆ set()

template<typename T >
void internal::buffer< T >::set ( T *  buf_data,
std::size_t  buf_capacity 
)
inlineprotected

Sets the buffer data and capacity.

◆ size()

template<typename T >
std::size_t internal::buffer< T >::size ( ) const
inline

Returns the size of this buffer.


Dokumentace pro tuto třídu byla vygenerována z následujících souborů: