WPILibC++ 2024.3.2
detail::iterator_buffer< OutputIt, T, Traits > Class Template Referencefinal

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/fmtlib/include/fmt/core.h>

Inheritance diagram for detail::iterator_buffer< OutputIt, T, Traits >:
detail::buffer_traits detail::buffer< T >

Public Member Functions

 iterator_buffer (OutputIt out, size_t n=buffer_size)
 
 iterator_buffer (iterator_buffer &&other)
 
 ~iterator_buffer ()
 
auto out () -> OutputIt
 
auto count () const -> size_t
 
- 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 >
 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
 Returns the size of this buffer. More...
 
constexpr auto capacity () const noexcept -> size_t
 Returns the capacity of this buffer. More...
 
FMT_CONSTEXPR auto data () noexcept -> T *
 Returns a pointer to the buffer data (not null-terminated). More...
 
FMT_CONSTEXPR auto data () const noexcept -> const T *
 
void clear ()
 Clears this buffer. More...
 
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)
 Appends data to the end of the buffer. More...
 
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
 Increases the buffer capacity to hold at least capacity elements. More...
 
void flush ()
 
- 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
 Sets the buffer data and capacity. More...
 
virtual FMT_CONSTEXPR20 void grow (size_t capacity)=0
 Increases the buffer capacity to hold at least capacity elements. More...
 

Additional Inherited Members

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

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

◆ 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

◆ ~iterator_buffer()

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

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

◆ flush()

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

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

◆ out()

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

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