Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
fmt::internal::ContainerBuffer< Container > Class Template Reference

#include <container.h>

+ Inheritance diagram for fmt::internal::ContainerBuffer< Container >:
+ Collaboration diagram for fmt::internal::ContainerBuffer< Container >:

Public Member Functions

 ContainerBuffer (Container &container)
 
- Public Member Functions inherited from fmt::Buffer< Container::value_type >
virtual ~Buffer ()
 
std::size_t size () const
 
std::size_t capacity () const
 
void resize (std::size_t new_size)
 
void reserve (std::size_t capacity)
 
void clear () FMT_NOEXCEPT
 
void push_back (const Container::value_type &value)
 
void append (const U *begin, const U *end)
 
Container::value_type & operator[] (std::size_t index)
 
const Container::value_type & operator[] (std::size_t index) const
 

Protected Member Functions

virtual void grow (std::size_t size) FMT_OVERRIDE
 
- Protected Member Functions inherited from fmt::Buffer< Container::value_type >
 Buffer (Container::value_type *ptr=FMT_NULL, std::size_t capacity=0)
 

Private Attributes

Container & container_
 

Additional Inherited Members

- Protected Attributes inherited from fmt::Buffer< Container::value_type >
Container::value_type * ptr_
 
std::size_t size_
 
std::size_t capacity_
 

Detailed Description

template<typename Container>
class fmt::internal::ContainerBuffer< Container >

\rst A "buffer" that appends data to a standard container (e.g. typically a std::vector or std::basic_string). \endrst

Definition at line 26 of file container.h.

Constructor & Destructor Documentation

◆ ContainerBuffer()

template<typename Container >
fmt::internal::ContainerBuffer< Container >::ContainerBuffer ( Container & container)
inlineexplicit

Definition at line 38 of file container.h.

Member Function Documentation

◆ grow()

template<typename Container >
virtual void fmt::internal::ContainerBuffer< Container >::grow ( std::size_t size)
inlineprotectedvirtual

\rst Increases the buffer capacity to hold at least size elements updating ptr_ and capacity_. \endrst

Implements fmt::Buffer< Container::value_type >.

Definition at line 31 of file container.h.

Member Data Documentation

◆ container_

template<typename Container >
Container& fmt::internal::ContainerBuffer< Container >::container_
private

Definition at line 28 of file container.h.


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