Electroneum
Public Member Functions | Private Attributes | Friends | List of all members
crow::json::wvalue Class Reference

#include <json.h>

Public Member Functions

type t () const
 
 wvalue ()
 
 wvalue (const rvalue &r)
 
 wvalue (wvalue &&r)
 
wvalueoperator= (wvalue &&r)
 
void clear ()
 
void reset ()
 
wvalueoperator= (std::nullptr_t)
 
wvalueoperator= (bool value)
 
wvalueoperator= (double value)
 
wvalueoperator= (unsigned short value)
 
wvalueoperator= (short value)
 
wvalueoperator= (long long value)
 
wvalueoperator= (long value)
 
wvalueoperator= (int value)
 
wvalueoperator= (unsigned long long value)
 
wvalueoperator= (unsigned long value)
 
wvalueoperator= (unsigned int value)
 
wvalueoperator= (const char *str)
 
wvalueoperator= (const std::string &str)
 
template<typename T >
wvalueoperator= (const std::vector< T > &v)
 
wvalueoperator[] (unsigned index)
 
int count (const std::string &str)
 
wvalueoperator[] (const std::string &str)
 
size_t estimate_length () const
 

Private Attributes

type t_ {type::Null}
 
double d {}
 
std::string s
 
std::unique_ptr< std::vector< wvalue > > l
 
std::unique_ptr< std::unordered_map< std::string, wvalue > > o
 

Friends

class crow::mustache::template_t
 
void dump_internal (const wvalue &v, std::string &out)
 
std::string dump (const wvalue &v)
 

Constructor & Destructor Documentation

◆ wvalue() [1/3]

crow::json::wvalue::wvalue ( )
inline

◆ wvalue() [2/3]

crow::json::wvalue::wvalue ( const rvalue r)
inline

◆ wvalue() [3/3]

crow::json::wvalue::wvalue ( wvalue &&  r)
inline

Member Function Documentation

◆ clear()

void crow::json::wvalue::clear ( )
inline

◆ count()

int crow::json::wvalue::count ( const std::string &  str)
inline

◆ estimate_length()

size_t crow::json::wvalue::estimate_length ( ) const
inline

◆ operator=() [1/15]

wvalue& crow::json::wvalue::operator= ( wvalue &&  r)
inline

◆ operator=() [2/15]

wvalue& crow::json::wvalue::operator= ( std::nullptr_t  )
inline

◆ operator=() [3/15]

wvalue& crow::json::wvalue::operator= ( bool  value)
inline

◆ operator=() [4/15]

wvalue& crow::json::wvalue::operator= ( double  value)
inline

◆ operator=() [5/15]

wvalue& crow::json::wvalue::operator= ( unsigned short  value)
inline

◆ operator=() [6/15]

wvalue& crow::json::wvalue::operator= ( short  value)
inline

◆ operator=() [7/15]

wvalue& crow::json::wvalue::operator= ( long long  value)
inline

◆ operator=() [8/15]

wvalue& crow::json::wvalue::operator= ( long  value)
inline

◆ operator=() [9/15]

wvalue& crow::json::wvalue::operator= ( int  value)
inline

◆ operator=() [10/15]

wvalue& crow::json::wvalue::operator= ( unsigned long long  value)
inline

◆ operator=() [11/15]

wvalue& crow::json::wvalue::operator= ( unsigned long  value)
inline

◆ operator=() [12/15]

wvalue& crow::json::wvalue::operator= ( unsigned int  value)
inline

◆ operator=() [13/15]

wvalue& crow::json::wvalue::operator= ( const char *  str)
inline

◆ operator=() [14/15]

wvalue& crow::json::wvalue::operator= ( const std::string &  str)
inline

◆ operator=() [15/15]

template<typename T >
wvalue& crow::json::wvalue::operator= ( const std::vector< T > &  v)
inline

◆ operator[]() [1/2]

wvalue& crow::json::wvalue::operator[] ( unsigned  index)
inline

◆ operator[]() [2/2]

wvalue& crow::json::wvalue::operator[] ( const std::string &  str)
inline

◆ reset()

void crow::json::wvalue::reset ( )
inline

◆ t()

type crow::json::wvalue::t ( ) const
inline

Friends And Related Function Documentation

◆ crow::mustache::template_t

friend class crow::mustache::template_t
friend

◆ dump

std::string dump ( const wvalue v)
friend

◆ dump_internal

void dump_internal ( const wvalue v,
std::string &  out 
)
friend

Member Data Documentation

◆ d

double crow::json::wvalue::d {}
private

◆ l

std::unique_ptr<std::vector<wvalue> > crow::json::wvalue::l
private

◆ o

std::unique_ptr<std::unordered_map<std::string, wvalue> > crow::json::wvalue::o
private

◆ s

std::string crow::json::wvalue::s
private

◆ t_

type crow::json::wvalue::t_ {type::Null}
private

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