DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Class describing a list of JSON nodes. More...
#include <Elements.h>
Public Types | |
typedef std::pair< JsonElement::second_type::assoc_iterator, JsonElement::second_type::assoc_iterator > | iter_t |
Public Member Functions | |
NodeList (const NodeList &l) | |
Copy constructor. More... | |
NodeList (JsonElement *frst, const std::string &tag) | |
Initializing constructor. More... | |
~NodeList () | |
Default destructor. More... | |
JsonElement * | reset () |
Reset the nodelist - e.g. restart iteration from beginning. More... | |
JsonElement * | next () const |
Advance to next element. More... | |
JsonElement * | previous () const |
Go back to previous element. More... | |
NodeList & | operator= (const NodeList &l) |
Assignment operator. More... | |
Public Attributes | |
std::string | m_tag |
JsonElement * | m_node |
iter_t | m_ptr |
Class describing a list of JSON nodes.
Definition of a "list" of json elements hanging of the parent. The list allows iterations, which can be restarted. Please not: Copies are not entirely free, since the string tag need to be replicated using strdup/free (or when using xerces the corresponding unicode routines).
Definition at line 103 of file Elements.h.
typedef std::pair<JsonElement::second_type::assoc_iterator,JsonElement::second_type::assoc_iterator> dd4hep::json::NodeList::iter_t |
Definition at line 105 of file Elements.h.
NodeList::NodeList | ( | const NodeList & | l | ) |
Copy constructor.
Definition at line 189 of file Elements.cpp.
NodeList::NodeList | ( | JsonElement * | frst, |
const std::string & | tag | ||
) |
Initializing constructor.
Definition at line 196 of file Elements.cpp.
NodeList::~NodeList | ( | ) |
Default destructor.
Definition at line 203 of file Elements.cpp.
JsonElement * NodeList::next | ( | ) | const |
Advance to next element.
Definition at line 218 of file Elements.cpp.
Assignment operator.
Definition at line 236 of file Elements.cpp.
JsonElement * NodeList::previous | ( | ) | const |
Go back to previous element.
Definition at line 227 of file Elements.cpp.
JsonElement * NodeList::reset | ( | ) |
Reset the nodelist - e.g. restart iteration from beginning.
Reset the nodelist.
Definition at line 207 of file Elements.cpp.
JsonElement* dd4hep::json::NodeList::m_node |
Definition at line 107 of file Elements.h.
|
mutable |
Definition at line 108 of file Elements.h.
std::string dd4hep::json::NodeList::m_tag |
Definition at line 106 of file Elements.h.