NGL  6.5
The NCCA Graphics Library
fmt::internal::StringBuffer< Char > Class Template Reference

#include <string.h>

+ Inheritance diagram for fmt::internal::StringBuffer< Char >:
+ Collaboration diagram for fmt::internal::StringBuffer< Char >:

Public Member Functions

void move_to (std::basic_string< Char > &str)
 
- Public Member Functions inherited from fmt::Buffer< Char >
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 Char &value)
 
void append (const U *begin, const U *end)
 
Char & operator[] (std::size_t index)
 
const Char & operator[] (std::size_t index) const
 

Protected Member Functions

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

Private Attributes

std::basic_string< Char > data_
 

Additional Inherited Members

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

Detailed Description

template<typename Char>
class fmt::internal::StringBuffer< Char >

Definition at line 21 of file string.h.

Member Function Documentation

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

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

Implements fmt::Buffer< Char >.

Definition at line 26 of file string.h.

References fmt::Buffer< Char >::capacity_, fmt::Buffer< Char >::ptr_, and fmt::Buffer< Char >::size().

+ Here is the call graph for this function:

template<typename Char>
void fmt::internal::StringBuffer< Char >::move_to ( std::basic_string< Char > &  str)
inline

Definition at line 34 of file string.h.

References fmt::Buffer< Char >::capacity_, fmt::Buffer< Char >::ptr_, and fmt::Buffer< Char >::size_.

+ Here is the caller graph for this function:

Member Data Documentation

template<typename Char>
std::basic_string<Char> fmt::internal::StringBuffer< Char >::data_
private

Definition at line 23 of file string.h.


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