| Bsoft 2.0.5 Bernard's software package

Public Member Functions | List of all members
JSvalue Class Reference

`#include <json.h>`

## Public Member Functions
| JSvalue ()
| JSvalue (JStype tp)
| JSvalue (bool tf)
| JSvalue (const char *val)
| JSvalue (const string &val)
| JSvalue (const int &val)
| JSvalue (const unsigned int &val)
| JSvalue (const long &val)
| JSvalue (const unsigned long &val)
| JSvalue (const float &val)
| JSvalue (const double &val)
template<typename T >
| JSvalue (const vector< T > &arr)
| JSvalue (const map< string, JSvalue > &mp)
const JStype & | type () const
size_t | size ()
void | clear ()
long | memory ()
string & | value ()
bool & | boolean ()
long & | integer ()
double & | real ()
vector< JSvalue > & | array ()
JSvalue & | operator[] (long j)
vector< long > | array_integer ()
vector< double > | array_real ()
JSvalue & | front ()
JSvalue & | back ()
vector< JSvalue >::iterator | begin ()
vector< JSvalue >::iterator | end ()
vector< JSvalue >::iterator | erase (long j)
vector< JSvalue >::iterator | erase (vector< JSvalue >::iterator first, vector< JSvalue >::iterator last)
void | push_back (const JSvalue &val)
map< string, JSvalue > & | object ()
JSvalue & | operator[] (string tag)
JSvalue & | object (string tag)
JSvalue & | at (string tag)
bool | exists (string tag)
long | erase (string tag)
map< string, JSvalue >::iterator | object_begin ()
map< string, JSvalue >::iterator | object_end ()
map< string, JSvalue >::iterator | erase (map< string, JSvalue >::iterator first, map< string, JSvalue >::iterator last)
map< string, JSvalue >::iterator | lower_bound (string &s)
map< string, JSvalue >::iterator | upper_bound (string &s)
bool & | boolean (string &tag)
long & | integer (string &tag)
double & | real (string &tag)
vector< JSvalue > & | array (string &tag)
bool | operator== (string val)
bool | operator!= (string val)
void | operator *= (double d)
vector< JSvalue * > | operator() (string &jsonpath)
void | qdots (string &jsonpath, vector< JSvalue * > &qarr)
void | qbrackets (string &jsonpath, vector< JSvalue * > &qarr)
void | write (string &filename)

## Detailed Description

Definition at line 53 of file json.h.

## Constructor & Destructor Documentation

## ◆ JSvalue() [1/13]

JSvalue::JSvalue | ( |  | ) |
| inline

Definition at line 88 of file json.h.

## ◆ JSvalue() [2/13]

JSvalue::JSvalue | ( | JStype | tp | ) |
| inline

Definition at line 89 of file json.h.

## ◆ JSvalue() [3/13]

JSvalue::JSvalue | ( | bool | tf | ) |
| inline

Definition at line 90 of file json.h.

## ◆ JSvalue() [4/13]

JSvalue::JSvalue | ( | const char * | val | ) |
| inline

Definition at line 91 of file json.h.

## ◆ JSvalue() [5/13]

JSvalue::JSvalue | ( | const string & | val | ) |
| inline

Definition at line 92 of file json.h.

## ◆ JSvalue() [6/13]

JSvalue::JSvalue | ( | const int & | val | ) |
| inline

Definition at line 93 of file json.h.

## ◆ JSvalue() [7/13]

JSvalue::JSvalue | ( | const unsigned int & | val | ) |
| inline

Definition at line 94 of file json.h.

## ◆ JSvalue() [8/13]

JSvalue::JSvalue | ( | const long & | val | ) |
| inline

Definition at line 95 of file json.h.

## ◆ JSvalue() [9/13]

JSvalue::JSvalue | ( | const unsigned long & | val | ) |
| inline

Definition at line 96 of file json.h.

## ◆ JSvalue() [10/13]

JSvalue::JSvalue | ( | const float & | val | ) |
| inline

Definition at line 97 of file json.h.

## ◆ JSvalue() [11/13]

JSvalue::JSvalue | ( | const double & | val | ) |
| inline

Definition at line 98 of file json.h.

## ◆ JSvalue() [12/13]

template<typename T >

JSvalue::JSvalue | ( | const vector< T > & | arr | ) |
| inline

Definition at line 100 of file json.h.

## ◆ JSvalue() [13/13]

JSvalue::JSvalue | ( | const map< string, JSvalue > & | mp | ) |
| inline

Definition at line 105 of file json.h.

## Member Function Documentation

## ◆ array() [1/2]

vector<JSvalue>& JSvalue::array | ( |  | ) |
| inline

Definition at line 151 of file json.h.

## ◆ array() [2/2]

vector<JSvalue>& JSvalue::array | ( | string & | tag | ) |
| inline

Definition at line 242 of file json.h.

## ◆ array_integer()

vector<long> JSvalue::array_integer | ( |  | ) |
| inline

Definition at line 159 of file json.h.

## ◆ array_real()

vector<double> JSvalue::array_real | ( |  | ) |
| inline

Definition at line 166 of file json.h.

## ◆ at()

JSvalue& JSvalue::at | ( | string | tag | ) |
| inline

Definition at line 210 of file json.h.

## ◆ back()

JSvalue& JSvalue::back | ( |  | ) |
| inline

Definition at line 177 of file json.h.

## ◆ begin()

vector<JSvalue>::iterator JSvalue::begin | ( |  | ) |
| inline

Definition at line 181 of file json.h.

## ◆ boolean() [1/2]

bool& JSvalue::boolean | ( |  | ) |
| inline

Definition at line 132 of file json.h.

## ◆ boolean() [2/2]

bool& JSvalue::boolean | ( | string & | tag | ) |
| inline

Definition at line 233 of file json.h.

## ◆ clear()

void JSvalue::clear | ( |  | ) |
| inline

Definition at line 115 of file json.h.

## ◆ end()

vector<JSvalue>::iterator JSvalue::end | ( |  | ) |
| inline

Definition at line 182 of file json.h.

## ◆ erase() [1/4]

vector<JSvalue>::iterator JSvalue::erase | ( | long | j | ) |
| inline

Definition at line 183 of file json.h.

## ◆ erase() [2/4]

vector<JSvalue>::iterator JSvalue::erase | ( | vector< JSvalue >::iterator | first,
|  | vector< JSvalue >::iterator | last
| ) |  |
| inline

Definition at line 187 of file json.h.

## ◆ erase() [3/4]

long JSvalue::erase | ( | string | tag | ) |
| inline

Definition at line 220 of file json.h.

## ◆ erase() [4/4]

map<string, JSvalue>::iterator JSvalue::erase | ( | map< string, JSvalue >::iterator | first,
|  | map< string, JSvalue >::iterator | last
| ) |  |
| inline

Definition at line 226 of file json.h.

## ◆ exists()

bool JSvalue::exists | ( | string | tag | ) |
| inline

Definition at line 215 of file json.h.

## ◆ front()

JSvalue& JSvalue::front | ( |  | ) |
| inline

Definition at line 173 of file json.h.

## ◆ integer() [1/2]

long& JSvalue::integer | ( |  | ) |
| inline

Definition at line 136 of file json.h.

## ◆ integer() [2/2]

long& JSvalue::integer | ( | string & | tag | ) |
| inline

Definition at line 236 of file json.h.

## ◆ lower_bound()

map<string, JSvalue>::iterator JSvalue::lower_bound | ( | string & | s | ) |
| inline

Definition at line 230 of file json.h.

## ◆ memory()

long JSvalue::memory | ( |  | ) |
| inline

Definition at line 120 of file json.h.

## ◆ object() [1/2]

map<string, JSvalue>& JSvalue::object | ( |  | ) |
| inline

Definition at line 196 of file json.h.

## ◆ object() [2/2]

JSvalue& JSvalue::object | ( | string | tag | ) |
| inline

Definition at line 205 of file json.h.

## ◆ object_begin()

map<string, JSvalue>::iterator JSvalue::object_begin | ( |  | ) |
| inline

Definition at line 224 of file json.h.

## ◆ object_end()

map<string, JSvalue>::iterator JSvalue::object_end | ( |  | ) |
| inline

Definition at line 225 of file json.h.

## ◆ operator *=()

void JSvalue::operator *= | ( | double | d | ) |
| inline

Definition at line 253 of file json.h.

## ◆ operator!=()

bool JSvalue::operator!= | ( | string | val | ) |
| inline

Definition at line 249 of file json.h.

## ◆ operator()()

vector<JSvalue*> JSvalue::operator() | ( | string & | jsonpath | ) |
| inline

Definition at line 260 of file json.h.

## ◆ operator==()

bool JSvalue::operator== | ( | string | val | ) |
| inline

Definition at line 246 of file json.h.

## ◆ operator[]() [1/2]

JSvalue& JSvalue::operator[] | ( | long | j | ) |
| inline

Definition at line 155 of file json.h.

## ◆ operator[]() [2/2]

JSvalue& JSvalue::operator[] | ( | string | tag | ) |
| inline

Definition at line 200 of file json.h.

## ◆ push_back()

void JSvalue::push_back | ( | const JSvalue & | val | ) |
| inline

Definition at line 191 of file json.h.

## ◆ qbrackets()

void JSvalue::qbrackets | ( | string & | jsonpath,
|  | vector< JSvalue * > & | qarr
| ) |  |
| inline

Definition at line 312 of file json.h.

## ◆ qdots()

void JSvalue::qdots | ( | string & | jsonpath,
|  | vector< JSvalue * > & | qarr
| ) |  |
| inline

Definition at line 268 of file json.h.

## ◆ real() [1/2]

double& JSvalue::real | ( |  | ) |
| inline

Definition at line 143 of file json.h.

## ◆ real() [2/2]

double& JSvalue::real | ( | string & | tag | ) |
| inline

Definition at line 239 of file json.h.

## ◆ size()

size_t JSvalue::size | ( |  | ) |
| inline

Definition at line 108 of file json.h.

## ◆ type()

const JStype& JSvalue::type | ( |  | ) | const
| inline

Definition at line 106 of file json.h.

## ◆ upper_bound()

map<string, JSvalue>::iterator JSvalue::upper_bound | ( | string & | s | ) |
| inline

Definition at line 231 of file json.h.

## ◆ value()

string& JSvalue::value | ( |  | ) |
| inline

Definition at line 128 of file json.h.

## ◆ write()

void JSvalue::write | ( | string & | filename | ) |
| inline

Definition at line 345 of file json.h.

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

- /Users/bernard/b20/bsoft/include/json.h