DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::xml::NodeList Class Reference

Class describing a list of XML nodes. More...

#include <XMLElements.h>

Public Member Functions

 NodeList (const NodeList &l)
 Copy constructor. More...
 
 NodeList (XmlElement *frst, const XmlChar *t)
 Initializing constructor. More...
 
 ~NodeList ()
 Default destructor. More...
 
XmlElement * reset ()
 Reset the nodelist - e.g. restart iteration from beginning. More...
 
XmlElement * next () const
 Advance to next element. More...
 
XmlElement * previous () const
 Go back to previous element. More...
 
NodeListoperator= (const NodeList &l)
 Assignment operator. More...
 

Public Attributes

Tag_t m_tag
 
XmlElement * m_node
 
XmlElement * m_ptr
 

Detailed Description

Class describing a list of XML nodes.

Definition of a "list" of xml 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).

Author
M.Frank
Version
1.0

Definition at line 349 of file XMLElements.h.

Constructor & Destructor Documentation

◆ NodeList() [1/2]

NodeList::NodeList ( const NodeList l)

Copy constructor.

Definition at line 564 of file XMLElements.cpp.

◆ NodeList() [2/2]

NodeList::NodeList ( XmlElement *  frst,
const XmlChar t 
)

Initializing constructor.

Definition at line 571 of file XMLElements.cpp.

◆ ~NodeList()

NodeList::~NodeList ( )

Default destructor.

Definition at line 578 of file XMLElements.cpp.

Member Function Documentation

◆ next()

XmlElement * NodeList::next ( ) const

Advance to next element.

Definition at line 587 of file XMLElements.cpp.

◆ operator=()

NodeList & NodeList::operator= ( const NodeList l)

Assignment operator.

Definition at line 621 of file XMLElements.cpp.

◆ previous()

XmlElement * NodeList::previous ( ) const

Go back to previous element.

Definition at line 604 of file XMLElements.cpp.

◆ reset()

XmlElement * NodeList::reset ( )

Reset the nodelist - e.g. restart iteration from beginning.

Reset the nodelist.

Definition at line 582 of file XMLElements.cpp.

Member Data Documentation

◆ m_node

XmlElement* dd4hep::xml::NodeList::m_node

Definition at line 352 of file XMLElements.h.

◆ m_ptr

XmlElement* dd4hep::xml::NodeList::m_ptr
mutable

Definition at line 353 of file XMLElements.h.

◆ m_tag

Tag_t dd4hep::xml::NodeList::m_tag

Definition at line 351 of file XMLElements.h.


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