Geant4_10
DefaultHepRepInstanceTree.h
Go to the documentation of this file.
1 // Copyright FreeHEP, 2005.
2 #ifndef CHEPREP_DEFAULTHEPREPINSTANCETREE_H
3 #define CHEPREP_DEFAULTHEPREPINSTANCETREE_H 1
4 
5 #include "cheprep/config.h"
6 
7 #include <string>
8 #include <vector>
9 #include <set>
10 
11 #include "HEPREP/HepRep.h"
14 #include "HEPREP/HepRepInstance.h"
15 #include "HEPREP/HepRepWriter.h"
16 #include "HEPREP/HepRepTreeID.h"
17 
18 #include "DefaultHepRepTreeID.h"
19 
24 namespace cheprep {
25 
27 
28  private:
29  HEPREP::HepRepTreeID* typeTree;
30  std::vector<HEPREP::HepRepInstance*> instances;
31  std::vector<HEPREP::HepRepTreeID*> instanceTrees;
32 
33  public:
34  DefaultHepRepInstanceTree(std::string name, std::string version, HEPREP::HepRepTreeID* typeTree);
36 
37  void overlay(HEPREP::HepRepInstanceTree * instanceTree);
39  void addInstance(HEPREP::HepRepInstance* instance);
40  void removeInstance(HEPREP::HepRepInstance* instance);
41  std::vector<HEPREP::HepRepInstance*> getInstances();
44  std::vector<HEPREP::HepRepTreeID*> getInstanceTreeList();
45 };
46 
47 } // cheprep
48 
49 
50 #endif
std::vector< HEPREP::HepRepTreeID * > getInstanceTreeList()
const XML_Char * version
Definition: expat.h:187
pid_t filter
Definition: tracer.cxx:30
std::vector< HEPREP::HepRepInstance * > getInstances()
const XML_Char * name
Definition: expat.h:151
void overlay(HEPREP::HepRepInstanceTree *instanceTree)
void addInstanceTree(HEPREP::HepRepTreeID *treeID)
DefaultHepRepInstanceTree(std::string name, std::string version, HEPREP::HepRepTreeID *typeTree)
void addInstance(HEPREP::HepRepInstance *instance)
void removeInstance(HEPREP::HepRepInstance *instance)
HEPREP::HepRepInstanceTree * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepSelectFilter *filter)