EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHTypedNodeIterator< T > Class Template Reference

#include <fun4all_coresoftware/blob/master/offline/framework/phool/PHTypedNodeIterator.h>

+ Inheritance diagram for PHTypedNodeIterator< T >:
+ Collaboration diagram for PHTypedNodeIterator< T >:

Public Member Functions

 PHTypedNodeIterator (PHCompositeNode *n)
 Constructor.
 
 PHTypedNodeIterator ()
 
Toperator* ()
 
 ~PHTypedNodeIterator () override
 Destructor.
 
PHIODataNode< T > * FindIODataNode (const char *name)
 
PHIODataNode< T > * find (const char *name)
 
bool AddIODataNode (T *data, const char *name)
 
bool insert (T *data, const char *name)
 
- Public Member Functions inherited from PHNodeIterator
 PHNodeIterator (PHCompositeNode *)
 
virtual ~PHNodeIterator ()
 
 PHNodeIterator ()
 
void print ()
 
PHPointerList< PHNode > & ls ()
 
PHNodefindFirst (const std::string &, const std::string &)
 
PHNodefindFirst (const std::string &)
 
bool cd (const std::string &pathString="")
 
bool addNode (PHNode *)
 
void forEach (PHNodeOperation &)
 
void for_each (PHNodeOperation &)
 
PHCompositeNodeget_currentNode () const
 

Protected Attributes

PHIODataNode< T > * myIODataNode
 
- Protected Attributes inherited from PHNodeIterator
PHCompositeNodecurrentNode
 
PHPointerList< PHNodesubNodeList
 

Detailed Description

template<class T>
class PHTypedNodeIterator< T >

Definition at line 20 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 20 of file PHTypedNodeIterator.h

Constructor & Destructor Documentation

template<class T>
PHTypedNodeIterator< T >::PHTypedNodeIterator ( PHCompositeNode n)
inlineexplicit

Constructor.

Definition at line 24 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 24 of file PHTypedNodeIterator.h

References PHTypedNodeIterator< T >::myIODataNode.

template<class T>
PHTypedNodeIterator< T >::PHTypedNodeIterator ( )
inline

Definition at line 30 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 30 of file PHTypedNodeIterator.h

References PHTypedNodeIterator< T >::myIODataNode.

template<class T>
PHTypedNodeIterator< T >::~PHTypedNodeIterator ( )
inlineoverride

Destructor.

Definition at line 40 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 40 of file PHTypedNodeIterator.h

Member Function Documentation

template<class T >
bool PHTypedNodeIterator< T >::AddIODataNode ( T data,
const char *  name 
)

Adds a data node called "name" to the tree, and inserts "data". The data node is added at the current "directory" of this iterator object, so remember to "cd" to the desired location in the tree!

Definition at line 100 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 100 of file PHTypedNodeIterator.h

template<class T >
PHIODataNode< T > * PHTypedNodeIterator< T >::find ( const char *  name)

Definition at line 80 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 80 of file PHTypedNodeIterator.h

Referenced by JetReco::FillJetNode().

+ Here is the caller graph for this function:

template<class T >
PHIODataNode< T > * PHTypedNodeIterator< T >::FindIODataNode ( const char *  name)

Finds an IODataNode of name "name" containing data of type "T". A null pointer will be returned if the node is not found, or if it contains data of the wrong type.

Definition at line 73 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 73 of file PHTypedNodeIterator.h

template<class T >
bool PHTypedNodeIterator< T >::insert ( T data,
const char *  name 
)

Definition at line 106 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 106 of file PHTypedNodeIterator.h

References data, n, and name.

template<class T >
T & PHTypedNodeIterator< T >::operator* ( )

Definition at line 66 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 66 of file PHTypedNodeIterator.h

Member Data Documentation

template<class T>
PHIODataNode<T>* PHTypedNodeIterator< T >::myIODataNode
protected

Definition at line 61 of file PHTypedNodeIterator.h.

View newest version in sPHENIX GitHub at line 61 of file PHTypedNodeIterator.h

Referenced by PHTypedNodeIterator< T >::PHTypedNodeIterator().


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