GenericStringBuffer< Encoding, Allocator > Class Template Reference#
Public Types |
Public Member Functions |
Public Attributes |
Static Public Attributes |
List of all members
GenericStringBuffer< Encoding, Allocator > Class Template Reference
Represents an in-memory output stream. More...
#include <stringbuffer.h>
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) |
Ch * | Push (size_t count) |
Ch * | PushUnsafe (size_t count) |
void | Pop (size_t count) |
const Ch * | GetString () const |
size_t | GetSize () const |
Get the size of string in bytes in the string buffer. More... | |
size_t | GetLength () const |
Get the length of string in Ch in the string buffer. More... | |
Public Attributes | |
internal::Stack< Allocator > | stack_ |
Static Public Attributes | |
static const size_t | kDefaultCapacity = 256 |
Detailed Description
template<typename Encoding, typename Allocator = CrtAllocator>
class GenericStringBuffer< Encoding, Allocator >
Represents an in-memory output stream.
- Template Parameters
-
Encoding Encoding of the stream. Allocator type 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()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
Member Function Documentation
◆ Clear()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
◆ Flush()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
◆ GetLength()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
Get the length of string in Ch in the string buffer.
◆ GetSize()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
Get the size of string in bytes in the string buffer.
◆ GetString()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
◆ Pop()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
◆ Push()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
◆ PushUnsafe()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
◆ Put()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
◆ PutUnsafe()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
◆ Reserve()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
◆ ShrinkToFit()
template<typename Encoding , typename Allocator = CrtAllocator>
|
inline |
Member Data Documentation
◆ kDefaultCapacity
template<typename Encoding , typename Allocator = CrtAllocator>
|
static |
◆ stack_
template<typename Encoding , typename Allocator = CrtAllocator>
|
mutable |
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/rapidjson/fwd.h
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/rapidjson/stringbuffer.h