Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Member Functions
JSON::AbstractLeaf Class Referenceabstract

Abstract class inherited from Object, from which all leafs will derive. This class only contains a pure virtual fucntion, that can then be called for a Leaf without knowing its exact type. More...

#include <jsonObject.h>

Inheritance diagram for JSON::AbstractLeaf:
[legend]

Public Member Functions

 AbstractLeaf (std::string const &specifier)
 Construtor with one paramter that initializes specifier. More...
 
virtual std::string getArgument () const =0
 Returns a std::string representing the argument of the Leaf. More...
 
 AbstractLeaf (std::string const &specifier)
 Construtor with one paramter that initializes specifier. More...
 
virtual std::string getArgument () const =0
 Returns a std::string representing the argument of the Leaf. More...
 
- Public Member Functions inherited from JSON::Object
 Object (std::string const &t_specifier)
 Construtor with one paramter that initializes specifier. More...
 
virtual ~Object ()
 Destructor.
 
std::string getSpecifier () const
 
virtual bool isNode () const
 Tells if the Object is a Node or not. This function is reimplemented in Node. More...
 
 Object (std::string const &t_specifier)
 Construtor with one paramter that initializes specifier. More...
 
virtual ~Object ()
 Destructor.
 
std::string getSpecifier () const
 
virtual bool isNode () const
 Tells if the Object is a Node or not. This function is reimplemented in Node. More...
 

Additional Inherited Members

- Protected Attributes inherited from JSON::Object
std::string specifier
 String that represents the specifier of the object. For example: "name": "electron" is an object of which the specifier is the string "name".
 

Detailed Description

Abstract class inherited from Object, from which all leafs will derive. This class only contains a pure virtual fucntion, that can then be called for a Leaf without knowing its exact type.

Constructor & Destructor Documentation

◆ AbstractLeaf() [1/2]

JSON::AbstractLeaf::AbstractLeaf ( std::string const &  specifier)
inlineexplicit

Construtor with one paramter that initializes specifier.

Parameters
t_specifierName of the Leaf's specifier.

◆ AbstractLeaf() [2/2]

JSON::AbstractLeaf::AbstractLeaf ( std::string const &  specifier)
inlineexplicit

Construtor with one paramter that initializes specifier.

Parameters
t_specifierName of the Leaf's specifier.

Member Function Documentation

◆ getArgument() [1/2]

virtual std::string JSON::AbstractLeaf::getArgument ( ) const
pure virtual

Returns a std::string representing the argument of the Leaf.

Returns
The std::string corresponding to the argument.

Implemented in JSON::Leaf< Type >, and JSON::Leaf< Type >.

◆ getArgument() [2/2]

virtual std::string JSON::AbstractLeaf::getArgument ( ) const
pure virtual

Returns a std::string representing the argument of the Leaf.

Returns
The std::string corresponding to the argument.

Implemented in JSON::Leaf< Type >, and JSON::Leaf< Type >.


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