Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
fmt::internal::MemoryBuffer< T, SIZE, Allocator > Class Template Reference

#include <format.h>

+ Inheritance diagram for fmt::internal::MemoryBuffer< T, SIZE, Allocator >:
+ Collaboration diagram for fmt::internal::MemoryBuffer< T, SIZE, Allocator >:

Public Member Functions

 MemoryBuffer (const Allocator &alloc=Allocator())
 
 ~MemoryBuffer () FMT_OVERRIDE
 
Allocator get_allocator () const
 
- Public Member Functions inherited from fmt::Buffer< T >
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 T &value)
 
template<typename U >
void append (const U *begin, const U *end)
 
T & operator[] (std::size_t index)
 
const T & operator[] (std::size_t index) const
 

Protected Member Functions

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

Private Member Functions

void deallocate ()
 

Private Attributes

data_ [SIZE]
 

Additional Inherited Members

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

Detailed Description

template<typename T, std::size_t SIZE, typename Allocator = std::allocator<T>>
class fmt::internal::MemoryBuffer< T, SIZE, Allocator >

Definition at line 819 of file format.h.

Constructor & Destructor Documentation

◆ MemoryBuffer()

template<typename T , std::size_t SIZE, typename Allocator = std::allocator<T>>
fmt::internal::MemoryBuffer< T, SIZE, Allocator >::MemoryBuffer ( const Allocator & alloc = Allocator())
inlineexplicit

Definition at line 832 of file format.h.

◆ ~MemoryBuffer()

template<typename T , std::size_t SIZE, typename Allocator = std::allocator<T>>
fmt::internal::MemoryBuffer< T, SIZE, Allocator >::~MemoryBuffer ( )
inline

Definition at line 834 of file format.h.

Member Function Documentation

◆ deallocate()

template<typename T , std::size_t SIZE, typename Allocator = std::allocator<T>>
void fmt::internal::MemoryBuffer< T, SIZE, Allocator >::deallocate ( )
inlineprivate

Definition at line 824 of file format.h.

◆ get_allocator()

template<typename T , std::size_t SIZE, typename Allocator = std::allocator<T>>
Allocator fmt::internal::MemoryBuffer< T, SIZE, Allocator >::get_allocator ( ) const
inline

Definition at line 870 of file format.h.

◆ grow()

template<typename T , std::size_t SIZE, typename Allocator >
void fmt::internal::MemoryBuffer< T, SIZE, Allocator >::grow ( std::size_t size)
protectedvirtual

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

Implements fmt::Buffer< T >.

Definition at line 874 of file format.h.

Member Data Documentation

◆ data_

template<typename T , std::size_t SIZE, typename Allocator = std::allocator<T>>
T fmt::internal::MemoryBuffer< T, SIZE, Allocator >::data_[SIZE]
private

Definition at line 821 of file format.h.


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