SG++
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

json::ListNode::ListNode ( )

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

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

Member Function Documentation

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

Reimplemented from json::Node.

References addValue().

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

Reimplemented from json::Node.

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

Reimplemented from json::Node.

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

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

Reimplemented from json::Node.

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

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

Reimplemented from json::Node.

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

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

Reimplemented from json::Node.

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

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

Reimplemented from json::Node.

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

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

Reimplemented from json::Node.

References addValue(), and ListNode().

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

Reimplemented from json::Node.

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

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

Reimplemented from json::Node.

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

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

Implements json::Node.

References ListNode().

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

Reimplemented from json::Node.

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

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

Reimplemented from json::Node.

References operator=().

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

Reimplemented from json::Node.

void json::ListNode::parse ( std::vector< Token > &  stream)
overridevirtual
std::unique_ptr< Node > json::ListNode::removeValue ( size_t  index)
overridevirtual

Reimplemented from json::Node.

size_t json::ListNode::size ( )
overridevirtual

Implements json::Node.


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