Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
detail::counting_buffer< T > Class Template Referencefinal

#include <core.h>

Inheritance diagram for detail::counting_buffer< T >:
Inheritance graph
[legend]

Public Member Functions

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

Protected Member Functions

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

Private Types

enum  { buffer_size = 256 }
 

Private Attributes

size_t count_ = 0
 
data_ [buffer_size]
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 1038 of file core.h.

Member Enumeration Documentation

◆ anonymous enum

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

Definition at line 1040 of file core.h.

Constructor & Destructor Documentation

◆ counting_buffer()

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

Definition at line 1052 of file core.h.

Member Function Documentation

◆ count()

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

Definition at line 1054 of file core.h.

◆ grow()

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

Increases the buffer capacity to hold at least capacity elements.

Implements detail::buffer< char >.

Definition at line 1045 of file core.h.

Member Data Documentation

◆ count_

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

Definition at line 1042 of file core.h.

◆ data_

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

Definition at line 1041 of file core.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51