SG++-Doxygen-Documentation
json::TextNode Class Reference

#include <TextNode.hpp>

Inheritance diagram for json::TextNode:
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
 
TextNodeoperator= (const TextNode &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
 
 TextNode ()
 
- 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

◆ TextNode()

json::TextNode::TextNode ( )

Referenced by clone().

Member Function Documentation

◆ clone()

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

Implements json::Node.

References TextNode().

◆ get()

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

Reimplemented from json::Node.

◆ getBool()

bool json::TextNode::getBool ( )
overridevirtual

Reimplemented from json::Node.

◆ getDouble()

double json::TextNode::getDouble ( )
overridevirtual

Reimplemented from json::Node.

◆ getInt()

int64_t json::TextNode::getInt ( )
overridevirtual

Reimplemented from json::Node.

◆ getUInt()

uint64_t json::TextNode::getUInt ( )
overridevirtual

Reimplemented from json::Node.

◆ operator=() [1/2]

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

Referenced by operator=().

◆ operator=() [2/2]

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

Reimplemented from json::Node.

References operator=(), and chess::r.

◆ parse()

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

Implements json::Node.

References json::STRING, and create_dataset::type.

◆ serialize()

◆ set()

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

Reimplemented from json::Node.

◆ setBool()

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

Reimplemented from json::Node.

◆ setDouble()

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

Reimplemented from json::Node.

◆ setInt()

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

Reimplemented from json::Node.

◆ setUInt()

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

Reimplemented from json::Node.

◆ size()

size_t json::TextNode::size ( )
overridevirtual

Implements json::Node.


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