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

#include <string.h>

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

Public Types

typedef std::basic_string< Char, std::char_traits< Char >, Allocator > StringType
 

Public Member Functions

 StringBuffer (const Allocator &allocator=Allocator())
 
void move_to (StringType &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) FMT_OVERRIDE
 
- Protected Member Functions inherited from fmt::Buffer< Char >
 Buffer (Char *ptr=FMT_NULL, std::size_t capacity=0)
 

Private Attributes

StringType 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, typename Allocator = std::allocator<Char>>
class fmt::internal::StringBuffer< Char, Allocator >

Definition at line 25 of file string.h.

Member Typedef Documentation

◆ StringType

template<typename Char , typename Allocator = std::allocator<Char>>
typedef std::basic_string<Char, std::char_traits<Char>, Allocator> fmt::internal::StringBuffer< Char, Allocator >::StringType

Definition at line 27 of file string.h.

Constructor & Destructor Documentation

◆ StringBuffer()

template<typename Char , typename Allocator = std::allocator<Char>>
fmt::internal::StringBuffer< Char, Allocator >::StringBuffer ( const Allocator & allocator = Allocator())
inlineexplicit

Definition at line 40 of file string.h.

Member Function Documentation

◆ grow()

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

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

Implements fmt::Buffer< Char >.

Definition at line 33 of file string.h.

◆ move_to()

template<typename Char , typename Allocator = std::allocator<Char>>
void fmt::internal::StringBuffer< Char, Allocator >::move_to ( StringType & str)
inline

Definition at line 44 of file string.h.

Member Data Documentation

◆ data_

template<typename Char , typename Allocator = std::allocator<Char>>
StringType fmt::internal::StringBuffer< Char, Allocator >::data_
private

Definition at line 30 of file string.h.


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