ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHNodeIterator.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHNodeIterator.h
1 #ifndef PHOOL_PHNODEITERATOR_H
2 #define PHOOL_PHNODEITERATOR_H
3 
4 // Declaration of class PHNodeIterator
5 // Purpose: iterator to navigate a node tree
6 // Author: Matthias Messer
7 
8 //#include "PHCompositeNode.h"
9 #include "PHPointerList.h"
10 
11 #include <string>
12 
13 class PHCompositeNode;
14 class PHNode;
15 class PHNodeOperation;
16 
18 {
19  public:
21  virtual ~PHNodeIterator() {}
23 
24  public:
25  void print();
27  PHNode* findFirst(const std::string&, const std::string&);
28  PHNode* findFirst(const std::string&);
29  bool cd(const std::string& pathString = "");
30  bool addNode(PHNode*);
31  void forEach(PHNodeOperation&);
34 
35  protected:
38 };
39 
40 #endif