SG++
json::IDNode Class Reference

#include <IDNode.hpp>

Inheritance diagram for json::IDNode:
json::Node

Public Member Functions

Nodeclone () override
 
std::string & get () override
 
bool getBool () override
 
double getDouble () override
 
int64_t getInt () override
 
uint64_t getUInt () override
 
 IDNode ()
 
IDNodeoperator= (const IDNode &right)=default
 
Nodeoperator= (const Node &right) override
 
void parse (std::vector< Token > &stream) override
 
void serialize (std::ostream &outFile, size_t indentWidth) override
 
void set (const std::string &value) override
 
void setBool (bool boolValue) override
 
void setDouble (double numericValue) override
 
void setInt (int64_t intValue) override
 
void setUInt (uint64_t uintValue) override
 
size_t size () override
 
- Public Member Functions inherited from json::Node
virtual void addAttribute (const std::string &name, std::unique_ptr< Node > node)
 
virtual NodeaddDictAttr (const std::string &name)
 
virtual NodeaddDictValue ()
 
virtual NodeaddIDAttr (const std::string &name, const std::string &value)
 
virtual NodeaddIDAttr (const std::string &name, const char *value)
 
virtual NodeaddIDAttr (const std::string &name, const double &value)
 
virtual NodeaddIDAttr (const std::string &name, const uint64_t &value)
 
virtual NodeaddIDAttr (const std::string &name, const int64_t &value)
 
virtual NodeaddIDAttr (const std::string &name, const bool &value)
 
virtual NodeaddIdValue (const std::string &value)
 
virtual NodeaddIdValue (const char *value)
 
virtual NodeaddIdValue (const double &value)
 
virtual NodeaddIdValue (const uint64_t &value)
 
virtual NodeaddIdValue (const int64_t &value)
 
virtual NodeaddIdValue (const bool &value)
 
virtual NodeaddListAttr (const std::string &name)
 
virtual NodeaddListValue ()
 
virtual NodeaddTextAttr (const std::string &name, const std::string &value)
 
virtual NodeaddTextValue (const std::string &value)
 
virtual void addValue (std::unique_ptr< Node > node)
 
virtual bool contains (const std::string &key)
 
virtual std::unique_ptr< Nodeerase (Node &node)
 
virtual std::unique_ptr< Nodeerase ()
 
virtual std::vector< std::string > & keys ()
 
 Node ()
 
virtual Nodeoperator[] (const std::string &key)
 
virtual Nodeoperator[] (const size_t index)
 
virtual std::unique_ptr< NoderemoveAttribute (const std::string name)
 
virtual std::unique_ptr< NoderemoveValue (size_t index)
 
virtual NodereplaceDictAttr (const std::string &name)
 
virtual NodereplaceIDAttr (const std::string &name, const std::string &value)
 
virtual NodereplaceIDAttr (const std::string &name, const char *value)
 
virtual NodereplaceIDAttr (const std::string &name, const double &value)
 
virtual NodereplaceIDAttr (const std::string &name, const uint64_t &value)
 
virtual NodereplaceIDAttr (const std::string &name, const int64_t &value)
 
virtual NodereplaceIDAttr (const std::string &name, const bool &value)
 
virtual NodereplaceListAttr (const std::string &name)
 
virtual NodereplaceTextAttr (const std::string &name, const std::string &value)
 
virtual ~Node ()=default
 

Additional Inherited Members

- Public Attributes inherited from json::Node
size_t orderedKeyIndex
 
Nodeparent
 
- Static Protected Attributes inherited from json::Node
static const int SERIALIZE_INDENT = 3
 

Constructor & Destructor Documentation

json::IDNode::IDNode ( )

Referenced by clone().

Member Function Documentation

Node * json::IDNode::clone ( )
overridevirtual

Implements json::Node.

References IDNode().

std::string & json::IDNode::get ( )
overridevirtual

Reimplemented from json::Node.

bool json::IDNode::getBool ( )
overridevirtual

Reimplemented from json::Node.

double json::IDNode::getDouble ( )
overridevirtual

Reimplemented from json::Node.

int64_t json::IDNode::getInt ( )
overridevirtual

Reimplemented from json::Node.

uint64_t json::IDNode::getUInt ( )
overridevirtual

Reimplemented from json::Node.

IDNode& json::IDNode::operator= ( const IDNode right)
default

Referenced by operator=().

Node & json::IDNode::operator= ( const Node right)
overridevirtual

Reimplemented from json::Node.

References operator=().

void json::IDNode::parse ( std::vector< Token > &  stream)
overridevirtual

Implements json::Node.

References json::ID.

void json::IDNode::set ( const std::string &  value)
overridevirtual

Reimplemented from json::Node.

void json::IDNode::setBool ( bool  boolValue)
overridevirtual

Reimplemented from json::Node.

void json::IDNode::setDouble ( double  numericValue)
overridevirtual

Reimplemented from json::Node.

void json::IDNode::setInt ( int64_t  intValue)
overridevirtual

Reimplemented from json::Node.

void json::IDNode::setUInt ( uint64_t  uintValue)
overridevirtual

Reimplemented from json::Node.

size_t json::IDNode::size ( )
overridevirtual

Implements json::Node.


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