Rosetta  2019.07
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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]

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)
 
Toperator[] (std::size_t index)
 
const Toperator[] (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

T data_ [SIZE]
 

Additional Inherited Members

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename T, std::size_t SIZE, typename Allocator = std::allocator<T>>
void fmt::internal::MemoryBuffer< T, SIZE, Allocator >::deallocate ( )
inlineprivate
template<typename T, std::size_t SIZE, typename Allocator = std::allocator<T>>
Allocator fmt::internal::MemoryBuffer< T, SIZE, Allocator >::get_allocator ( ) const
inline
template<typename T , std::size_t SIZE, typename Allocator >
void fmt::internal::MemoryBuffer< T, SIZE, Allocator >::grow ( std::size_t  size)
protectedvirtual

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

Implements fmt::Buffer< T >.

References FMT_NULL, fmt::internal::make_ptr(), and amino_acids::size.

Member Data Documentation

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

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