HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
counting_buffer< T > Class Template Referencefinal

#include <core.h>

+ Inheritance diagram for counting_buffer< T >:

Public Member Functions

 counting_buffer ()
 
auto count () -> size_t
 
- Public Member Functions inherited from buffer< T >
 buffer (const buffer &)=delete
 
void operator= (const buffer &)=delete
 
auto begin () FMT_NOEXCEPT-> T *
 
auto end () FMT_NOEXCEPT-> T *
 
auto begin () const FMT_NOEXCEPT-> const T *
 
auto end () const FMT_NOEXCEPT-> const T *
 
auto size () const FMT_NOEXCEPT-> size_t
 
auto capacity () const FMT_NOEXCEPT-> size_t
 
auto data () FMT_NOEXCEPT-> T *
 
auto data () const FMT_NOEXCEPT-> const T *
 
void clear ()
 
void try_resize (size_t count)
 
void try_reserve (size_t new_capacity)
 
void push_back (const T &value)
 
template<typename U >
void append (const U *begin, const U *end)
 
template<typename I >
auto operator[] (I index) -> T &
 
template<typename I >
auto operator[] (I index) const -> const T &
 

Protected Member Functions

void grow (size_t) final FMT_OVERRIDE
 
- Protected Member Functions inherited from buffer< T >
 buffer (size_t sz) FMT_NOEXCEPT
 
 buffer (T *p=nullptr, size_t sz=0, size_t cap=0) FMT_NOEXCEPT
 
 ~buffer ()=default
 
 buffer (buffer &&)=default
 
void set (T *buf_data, size_t buf_capacity) FMT_NOEXCEPT
 

Additional Inherited Members

- Public Types inherited from buffer< T >
using value_type = T
 
using const_reference = const T &
 

Detailed Description

template<typename T = char>
class counting_buffer< T >

Definition at line 935 of file core.h.

Constructor & Destructor Documentation

template<typename T = char>
counting_buffer< T >::counting_buffer ( )
inline

Definition at line 949 of file core.h.

Member Function Documentation

template<typename T = char>
auto counting_buffer< T >::count ( ) -> size_t
inline

Definition at line 951 of file core.h.

template<typename T = char>
void counting_buffer< T >::grow ( size_t  capacity)
inlinefinalprotectedvirtual

Increases the buffer capacity to hold at least capacity elements.

Implements buffer< T >.

Definition at line 942 of file core.h.


The documentation for this class was generated from the following file: