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

#include <core.h>

Inheritance diagram for detail::iterator_buffer< OutputIt, T, Traits >:
Inheritance graph
[legend]

Public Member Functions

auto count () const -> size_t
 
 iterator_buffer (iterator_buffer &&other)
 
 iterator_buffer (OutputIt out, size_t n=buffer_size)
 
auto out () -> OutputIt
 
 ~iterator_buffer ()
 
- Public Member Functions inherited from detail::buffer_traits
 buffer_traits (size_t)
 
auto count () const -> size_t
 
auto limit (size_t size) -> size_t
 
- Public Member Functions inherited from detail::buffer< T >
template<typename U >
void append (const U *begin, const U *end)
 
FMT_INLINE auto begin () const noexcept -> const T *
 
FMT_INLINE auto begin () noexcept -> T *
 
 buffer (const buffer &)=delete
 
constexpr auto capacity () const noexcept -> size_t
 
void clear ()
 
FMT_CONSTEXPR auto data () const noexcept -> const T *
 
FMT_CONSTEXPR auto data () noexcept -> T *
 
FMT_INLINE auto end () const noexcept -> const T *
 
FMT_INLINE auto end () noexcept -> T *
 
void operator= (const buffer &)=delete
 
template<typename Idx >
FMT_CONSTEXPR auto operator[] (Idx index) -> T &
 
template<typename Idx >
FMT_CONSTEXPR auto operator[] (Idx index) const -> const T &
 
FMT_CONSTEXPR20 void push_back (const T &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

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

Private Types

enum  { buffer_size = 256 }
 

Private Attributes

data_ [buffer_size]
 
OutputIt out_
 

Additional Inherited Members

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

Detailed Description

template<typename OutputIt, typename T, typename Traits = buffer_traits>
class detail::iterator_buffer< OutputIt, T, Traits >

Definition at line 924 of file core.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename OutputIt , typename T , typename Traits = buffer_traits>
anonymous enum
private
Enumerator
buffer_size 

Definition at line 927 of file core.h.

Constructor & Destructor Documentation

◆ iterator_buffer() [1/2]

template<typename OutputIt , typename T , typename Traits = buffer_traits>
detail::iterator_buffer< OutputIt, T, Traits >::iterator_buffer ( OutputIt  out,
size_t  n = buffer_size 
)
inlineexplicit

Definition at line 942 of file core.h.

◆ iterator_buffer() [2/2]

template<typename OutputIt , typename T , typename Traits = buffer_traits>
detail::iterator_buffer< OutputIt, T, Traits >::iterator_buffer ( iterator_buffer< OutputIt, T, Traits > &&  other)
inline

Definition at line 944 of file core.h.

◆ ~iterator_buffer()

template<typename OutputIt , typename T , typename Traits = buffer_traits>
detail::iterator_buffer< OutputIt, T, Traits >::~iterator_buffer ( )
inline

Definition at line 946 of file core.h.

Member Function Documentation

◆ count()

template<typename OutputIt , typename T , typename Traits = buffer_traits>
auto detail::iterator_buffer< OutputIt, T, Traits >::count ( ) const -> size_t
inline

Definition at line 952 of file core.h.

◆ flush()

template<typename OutputIt , typename T , typename Traits = buffer_traits>
void detail::iterator_buffer< OutputIt, T, Traits >::flush ( )
inlineprotected

Definition at line 935 of file core.h.

◆ grow()

template<typename OutputIt , typename T , typename Traits = buffer_traits>
FMT_CONSTEXPR20 void detail::iterator_buffer< OutputIt, T, Traits >::grow ( size_t  capacity)
inlineoverrideprotectedvirtual

Increases the buffer capacity to hold at least capacity elements.

Implements detail::buffer< T >.

Definition at line 931 of file core.h.

◆ out()

template<typename OutputIt , typename T , typename Traits = buffer_traits>
auto detail::iterator_buffer< OutputIt, T, Traits >::out ( ) -> OutputIt
inline

Definition at line 948 of file core.h.

Member Data Documentation

◆ data_

template<typename OutputIt , typename T , typename Traits = buffer_traits>
T detail::iterator_buffer< OutputIt, T, Traits >::data_[buffer_size]
private

Definition at line 928 of file core.h.

◆ out_

template<typename OutputIt , typename T , typename Traits = buffer_traits>
OutputIt detail::iterator_buffer< OutputIt, T, Traits >::out_
private

Definition at line 926 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