Agora  1.2.0
Agora project
fmt::v8::detail::counting_buffer< T > Class Template Referencefinal

#include <core.h>

Inheritance diagram for fmt::v8::detail::counting_buffer< T >:
Collaboration diagram for fmt::v8::detail::counting_buffer< T >:

Public Member Functions

 counting_buffer ()
 
auto count () -> size_t
 
- Public Member Functions inherited from fmt::v8::detail::buffer< char >
 buffer (const buffer &)=delete
 
void operator= (const buffer &)=delete
 
auto begin () -> char * throw ()
 
auto begin () const -> const char * throw ()
 
auto end () -> char * throw ()
 
auto end () const -> const char * throw ()
 
constexpr auto size () const -> size_t throw ()
 
constexpr auto capacity () const -> size_t throw ()
 
auto data () -> char * throw ()
 
auto data () const -> const char * throw ()
 
void clear ()
 
void try_resize (size_t count)
 
void try_reserve (size_t new_capacity)
 
void push_back (const char &value)
 
void append (const U *begin, const U *end)
 
auto operator[] (I index) -> char &
 
auto operator[] (I index) const -> const char &
 

Protected Member Functions

void grow (size_t) override
 
- Protected Member Functions inherited from fmt::v8::detail::buffer< char >
 buffer (size_t sz) throw ()
 
 buffer (char *p=nullptr, size_t sz=0, size_t cap=0) throw ()
 
 buffer (buffer &&)=default
 
 ~buffer ()=default
 
void set (char *buf_data, size_t buf_capacity) throw ()
 

Private Types

enum  { buffer_size = 256 }
 

Private Attributes

T data_ [buffer_size]
 
size_t count_ = 0
 

Additional Inherited Members

- Public Types inherited from fmt::v8::detail::buffer< char >
using value_type = char
 
using const_reference = const char &
 

Member Enumeration Documentation

◆ anonymous enum

template<typename T = char>
anonymous enum
private
Enumerator
buffer_size 

Constructor & Destructor Documentation

◆ counting_buffer()

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

Member Function Documentation

◆ count()

template<typename T = char>
auto fmt::v8::detail::counting_buffer< T >::count ( ) -> size_t
inline
Here is the caller graph for this function:

◆ grow()

template<typename T = char>
void fmt::v8::detail::counting_buffer< T >::grow ( size_t  capacity)
inlineoverrideprotectedvirtual

Increases the buffer capacity to hold at least capacity elements.

Implements fmt::v8::detail::buffer< char >.

Member Data Documentation

◆ count_

template<typename T = char>
size_t fmt::v8::detail::counting_buffer< T >::count_ = 0
private

◆ data_

template<typename T = char>
T fmt::v8::detail::counting_buffer< T >::data_[buffer_size]
private

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