RetroArch
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
GenericStringBuffer< Encoding, Allocator > Class Template Reference

Represents an in-memory output stream. More...

#include <fwd.h>

Collaboration diagram for GenericStringBuffer< Encoding, Allocator >:
[legend]

Public Types

typedef Encoding::Ch Ch
 

Public Member Functions

 GenericStringBuffer (Allocator *allocator=0, size_t capacity=kDefaultCapacity)
 
void Put (Ch c)
 
void PutUnsafe (Ch c)
 
void Flush ()
 
void Clear ()
 
void ShrinkToFit ()
 
void Reserve (size_t count)
 
ChPush (size_t count)
 
ChPushUnsafe (size_t count)
 
void Pop (size_t count)
 
const ChGetString () const
 
size_t GetSize () const
 

Public Attributes

internal::Stack< Allocator > stack_
 

Static Public Attributes

static const size_t kDefaultCapacity = 256
 

Private Member Functions

 GenericStringBuffer (const GenericStringBuffer &)
 
GenericStringBufferoperator= (const GenericStringBuffer &)
 

Detailed Description

template<typename Encoding, typename Allocator = CrtAllocator>
class GenericStringBuffer< Encoding, Allocator >

Represents an in-memory output stream.

Template Parameters
EncodingEncoding of the stream.
Allocatortype for allocating memory buffer.
Note
implements Stream concept

Member Typedef Documentation

◆ Ch

template<typename Encoding, typename Allocator = CrtAllocator>
typedef Encoding::Ch GenericStringBuffer< Encoding, Allocator >::Ch

Constructor & Destructor Documentation

◆ GenericStringBuffer() [1/2]

template<typename Encoding, typename Allocator = CrtAllocator>
GenericStringBuffer< Encoding, Allocator >::GenericStringBuffer ( Allocator *  allocator = 0,
size_t  capacity = kDefaultCapacity 
)
inline

◆ GenericStringBuffer() [2/2]

template<typename Encoding, typename Allocator = CrtAllocator>
GenericStringBuffer< Encoding, Allocator >::GenericStringBuffer ( const GenericStringBuffer< Encoding, Allocator > &  )
private

Member Function Documentation

◆ Clear()

template<typename Encoding, typename Allocator = CrtAllocator>
void GenericStringBuffer< Encoding, Allocator >::Clear ( )
inline
Here is the caller graph for this function:

◆ Flush()

template<typename Encoding, typename Allocator = CrtAllocator>
void GenericStringBuffer< Encoding, Allocator >::Flush ( )
inline

◆ GetSize()

template<typename Encoding, typename Allocator = CrtAllocator>
size_t GenericStringBuffer< Encoding, Allocator >::GetSize ( ) const
inline
Here is the caller graph for this function:

◆ GetString()

template<typename Encoding, typename Allocator = CrtAllocator>
const Ch* GenericStringBuffer< Encoding, Allocator >::GetString ( ) const
inline
Here is the caller graph for this function:

◆ operator=()

template<typename Encoding, typename Allocator = CrtAllocator>
GenericStringBuffer& GenericStringBuffer< Encoding, Allocator >::operator= ( const GenericStringBuffer< Encoding, Allocator > &  )
private

◆ Pop()

template<typename Encoding, typename Allocator = CrtAllocator>
void GenericStringBuffer< Encoding, Allocator >::Pop ( size_t  count)
inline

◆ Push()

template<typename Encoding, typename Allocator = CrtAllocator>
Ch* GenericStringBuffer< Encoding, Allocator >::Push ( size_t  count)
inline

◆ PushUnsafe()

template<typename Encoding, typename Allocator = CrtAllocator>
Ch* GenericStringBuffer< Encoding, Allocator >::PushUnsafe ( size_t  count)
inline

◆ Put()

template<typename Encoding, typename Allocator = CrtAllocator>
void GenericStringBuffer< Encoding, Allocator >::Put ( Ch  c)
inline
Here is the caller graph for this function:

◆ PutUnsafe()

template<typename Encoding, typename Allocator = CrtAllocator>
void GenericStringBuffer< Encoding, Allocator >::PutUnsafe ( Ch  c)
inline

◆ Reserve()

template<typename Encoding, typename Allocator = CrtAllocator>
void GenericStringBuffer< Encoding, Allocator >::Reserve ( size_t  count)
inline

◆ ShrinkToFit()

template<typename Encoding, typename Allocator = CrtAllocator>
void GenericStringBuffer< Encoding, Allocator >::ShrinkToFit ( )
inline

Member Data Documentation

◆ kDefaultCapacity

template<typename Encoding, typename Allocator = CrtAllocator>
const size_t GenericStringBuffer< Encoding, Allocator >::kDefaultCapacity = 256
static

◆ stack_

template<typename Encoding, typename Allocator = CrtAllocator>
internal::Stack<Allocator> GenericStringBuffer< Encoding, Allocator >::stack_
mutable

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