Flow123d  DF_patch_fe_data_tables-22c8b57
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
fmt::internal::MemoryBuffer< T, SIZE, Allocator > Class Template Reference

#include <format.h>

Inheritance diagram for fmt::internal::MemoryBuffer< T, SIZE, Allocator >:
Inheritance graph
[legend]
Collaboration diagram for fmt::internal::MemoryBuffer< T, SIZE, Allocator >:
Collaboration graph
[legend]

Public Member Functions

 MemoryBuffer (const Allocator &alloc=Allocator())
 
 ~MemoryBuffer ()
 
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)
 
- Protected Member Functions inherited from fmt::Buffer< T >
 Buffer (T *ptr=0, 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 668 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 681 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 683 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 673 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 719 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 723 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 670 of file format.h.


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