NGL  6.5
The NCCA Graphics Library
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 ()
 
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 671 of file format.h.

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

Definition at line 684 of file format.h.

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

Definition at line 686 of file format.h.

Member Function Documentation

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

Definition at line 676 of file format.h.

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 722 of file format.h.

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

Definition at line 726 of file format.h.

References fmt::internal::make_ptr().

+ Here is the call graph for this function:

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

Definition at line 673 of file format.h.


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