json::TextNode Class Reference

#include <TextNode.hpp>

Inheritance diagram for json::TextNode:

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
- 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 ( )

Implements json::Node.

References TextNode().

◆ get()

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

Reimplemented from json::Node.

◆ getBool()

bool json::TextNode::getBool ( )

Reimplemented from json::Node.

◆ getDouble()

double json::TextNode::getDouble ( )

Reimplemented from json::Node.

◆ getInt()

int64_t json::TextNode::getInt ( )

Reimplemented from json::Node.

◆ getUInt()

uint64_t json::TextNode::getUInt ( )

Reimplemented from json::Node.

◆ operator=() [1/2]

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

Referenced by operator=().

◆ operator=() [2/2]

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

Reimplemented from json::Node.

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

◆ parse()

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

Implements json::Node.

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

◆ serialize()

◆ set()

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

Reimplemented from json::Node.

◆ setBool()

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

Reimplemented from json::Node.

◆ setDouble()

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

Reimplemented from json::Node.

◆ setInt()

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

Reimplemented from json::Node.

◆ setUInt()

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

Reimplemented from json::Node.

◆ size()

size_t json::TextNode::size ( )

Implements json::Node.

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