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

#include <core.h>

+ Inheritance diagram for detail::counting_buffer< T >:

Public Member Functions

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

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 1084 of file core.h.

Constructor & Destructor Documentation

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

Definition at line 1098 of file core.h.

Member Function Documentation

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

Definition at line 1100 of file core.h.

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< T >.

Definition at line 1091 of file core.h.


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