dxjson 1.0
JSON library for C++
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dx::Object Class Reference
Inheritance diagram for dx::Object:
dx::Value

Public Member Functions

 Object (const Object &rhs)
 
template<typename T >
 Object (const std::map< std::string, T > &v)
 
JSONjsonAtKey (const std::string &s)
 
const JSONjsonAtKey (const std::string &s) const
 
void write (std::ostream &out) const
 
JSONValue type () const
 
ValuereturnMyNewCopy () const
 
void read (std::istream &in)
 
void erase (const std::string &key)
 
bool isEqual (const Value *other) const
 
bool operator== (const Object &other) const
 
bool operator!= (const Object &other) const
 

Public Attributes

std::map< std::string, JSONval
 

Detailed Description

Definition at line 675 of file dxjson.h.

Constructor & Destructor Documentation

◆ Object() [1/3]

dx::Object::Object ( )
inline

Definition at line 679 of file dxjson.h.

◆ Object() [2/3]

dx::Object::Object ( const Object rhs)
inline

Definition at line 680 of file dxjson.h.

◆ Object() [3/3]

template<typename T >
dx::Object::Object ( const std::map< std::string, T > &  v)
inline

Definition at line 683 of file dxjson.h.

Member Function Documentation

◆ erase()

void Object::erase ( const std::string &  key)

Definition at line 812 of file dxjson.cpp.

◆ isEqual()

bool Object::isEqual ( const Value other) const
virtual

Implements dx::Value.

Definition at line 875 of file dxjson.cpp.

◆ jsonAtKey() [1/2]

JSON & Object::jsonAtKey ( const std::string &  s)

Definition at line 453 of file dxjson.cpp.

◆ jsonAtKey() [2/2]

const JSON & Object::jsonAtKey ( const std::string &  s) const

Definition at line 446 of file dxjson.cpp.

◆ operator!=()

bool dx::Object::operator!= ( const Object other) const
inline

Definition at line 696 of file dxjson.h.

◆ operator==()

bool dx::Object::operator== ( const Object other) const
inline

Definition at line 695 of file dxjson.h.

◆ read()

void Object::read ( std::istream &  in)
virtual

Implements dx::Value.

Definition at line 733 of file dxjson.cpp.

◆ returnMyNewCopy()

Value * dx::Object::returnMyNewCopy ( ) const
inlinevirtual

Implements dx::Value.

Definition at line 691 of file dxjson.h.

◆ type()

JSONValue dx::Object::type ( ) const
inlinevirtual

Implements dx::Value.

Definition at line 690 of file dxjson.h.

◆ write()

void Object::write ( std::ostream &  out) const
virtual

Implements dx::Value.

Definition at line 414 of file dxjson.cpp.

Member Data Documentation

◆ val

std::map<std::string, JSON> dx::Object::val

Definition at line 677 of file dxjson.h.


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