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

#include <ListNode.hpp>

Inheritance diagram for json::ListNode:
json::Node

Public Member Functions

NodeaddDictValue () override
 
NodeaddIdValue (const char *value) override
 
NodeaddIdValue (const std::string &value) override
 
NodeaddIdValue (const double &value) override
 
NodeaddIdValue (const uint64_t &value) override
 
NodeaddIdValue (const int64_t &value) override
 
NodeaddIdValue (const bool &value) override
 
NodeaddListValue () override
 
NodeaddTextValue (const std::string &value) override
 
void addValue (std::unique_ptr< Node > node) override
 
Nodeclone () override
 
std::unique_ptr< Nodeerase (Node &node) override
 
 ListNode ()
 
 ListNode (const ListNode &original)
 
ListNodeoperator= (const ListNode &right)
 
Nodeoperator= (const Node &right) override
 
Nodeoperator[] (const size_t index) override
 
void parse (std::vector< Token > &stream) override
 
std::unique_ptr< NoderemoveValue (size_t index) override
 
void serialize (std::ostream &outFile, size_t indentWidth) 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 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 NodeaddListAttr (const std::string &name)
 
virtual NodeaddTextAttr (const std::string &name, const std::string &value)
 
virtual bool contains (const std::string &key)
 
virtual std::unique_ptr< Nodeerase ()
 
virtual std::string & get ()
 
virtual bool getBool ()
 
virtual double getDouble ()
 
virtual int64_t getInt ()
 
virtual uint64_t getUInt ()
 
virtual std::vector< std::string > & keys ()
 
 Node ()
 
virtual Nodeoperator[] (const std::string &key)
 
virtual std::unique_ptr< NoderemoveAttribute (const std::string name)
 
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 void set (const std::string &value)
 
virtual void setBool (bool boolValue)
 
virtual void setDouble (double doubleValue)
 
virtual void setInt (int64_t intValue)
 
virtual void setUInt (uint64_t uintValue)
 
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

◆ ListNode() [1/2]

json::ListNode::ListNode ( )

Referenced by addListValue(), clone(), and parse().

◆ ListNode() [2/2]

json::ListNode::ListNode ( const ListNode original)

Member Function Documentation

◆ addDictValue()

Node & json::ListNode::addDictValue ( )
overridevirtual

Reimplemented from json::Node.

References addValue().

Referenced by sgpp::datadriven::DBMatDatabase::putDataMatrix().

◆ addIdValue() [1/6]

Node & json::ListNode::addIdValue ( const char *  value)
overridevirtual

Reimplemented from json::Node.

◆ addIdValue() [2/6]

Node & json::ListNode::addIdValue ( const std::string &  value)
overridevirtual

Reimplemented from json::Node.

References addValue(), and json::Node::set().

◆ addIdValue() [3/6]

Node & json::ListNode::addIdValue ( const double &  value)
overridevirtual

Reimplemented from json::Node.

References addValue(), and json::Node::setDouble().

◆ addIdValue() [4/6]

Node & json::ListNode::addIdValue ( const uint64_t &  value)
overridevirtual

Reimplemented from json::Node.

References addValue(), and json::Node::setUInt().

◆ addIdValue() [5/6]

Node & json::ListNode::addIdValue ( const int64_t &  value)
overridevirtual

Reimplemented from json::Node.

References addValue(), and json::Node::setInt().

◆ addIdValue() [6/6]

Node & json::ListNode::addIdValue ( const bool &  value)
overridevirtual

Reimplemented from json::Node.

References addValue(), and json::Node::setBool().

◆ addListValue()

Node & json::ListNode::addListValue ( )
overridevirtual

Reimplemented from json::Node.

References addValue(), and ListNode().

◆ addTextValue()

Node & json::ListNode::addTextValue ( const std::string &  value)
overridevirtual

Reimplemented from json::Node.

References addValue(), and json::Node::set().

◆ addValue()

void json::ListNode::addValue ( std::unique_ptr< Node node)
overridevirtual

Reimplemented from json::Node.

Referenced by addDictValue(), addIdValue(), addListValue(), and addTextValue().

◆ clone()

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

Implements json::Node.

References ListNode().

◆ erase()

std::unique_ptr< Node > json::ListNode::erase ( Node node)
overridevirtual

Reimplemented from json::Node.

References json::Node::erase(), and json::Node::parent.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Reimplemented from json::Node.

References operator=().

◆ operator[]()

Node & json::ListNode::operator[] ( const size_t  index)
overridevirtual

Reimplemented from json::Node.

◆ parse()

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

◆ removeValue()

std::unique_ptr< Node > json::ListNode::removeValue ( size_t  index)
overridevirtual

Reimplemented from json::Node.

◆ serialize()

◆ size()


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