MongoDB  2.7.0
Public Member Functions | Static Public Attributes | List of all members
mongo::StringBuilderImpl< Allocator > Class Template Reference

stringstream deals with locale so this is a lot faster than std::stringstream for UTF8 More...

#include <builder.h>

Public Member Functions

StringBuilderImploperator<< (double x)
 
StringBuilderImploperator<< (int x)
 
StringBuilderImploperator<< (unsigned x)
 
StringBuilderImploperator<< (long x)
 
StringBuilderImploperator<< (unsigned long x)
 
StringBuilderImploperator<< (long long x)
 
StringBuilderImploperator<< (unsigned long long x)
 
StringBuilderImploperator<< (short x)
 
StringBuilderImploperator<< (char c)
 
void appendDoubleNice (double x)
 
void write (const char *buf, int len)
 
void append (const StringData &str)
 
StringBuilderImploperator<< (const StringData &str)
 
void reset (int maxSize=0)
 
std::string str () const
 
int len () const
 size of current string
 

Static Public Attributes

static const size_t MONGO_DBL_SIZE = 3 + DBL_MANT_DIG - DBL_MIN_EXP
 
static const size_t MONGO_S32_SIZE = 12
 
static const size_t MONGO_U32_SIZE = 11
 
static const size_t MONGO_S64_SIZE = 23
 
static const size_t MONGO_U64_SIZE = 22
 
static const size_t MONGO_S16_SIZE = 7
 

Detailed Description

template<typename Allocator>
class mongo::StringBuilderImpl< Allocator >

stringstream deals with locale so this is a lot faster than std::stringstream for UTF8


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