Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
DefaultHepRepInstanceTree.cc
이 파일의 문서화 페이지로 가기
1 // Copyright FreeHEP, 2005.
2 
4 
5 using namespace std;
6 using namespace HEPREP;
7 
12 namespace cheprep {
13 
14 DefaultHepRepInstanceTree::DefaultHepRepInstanceTree(string aName, string aVersion, HepRepTreeID* aTypeTree)
15  : DefaultHepRepTreeID(aName, aVersion), typeTree(aTypeTree) {
16 }
17 
19  for (vector<HepRepInstance*>::iterator i1 = instances.begin(); i1 != instances.end(); i1++) {
20  delete (*i1);
21  }
22  instances.clear();
23 }
24 
26  cerr << "DefaultHepRepInstanceTree::overlay(HepRepInstanceTree * instanceTree) not implemented." << endl;
27 }
28 
30  cerr << "DefaultHepRepInstanceTree::copy(HepRepTypeTree*, HepRepSelectFilter*) not implemented." << endl;
31  return NULL;
32 }
33 
35  instances.push_back(instance);
36 }
37 
39  cerr << "DefaultHepRepInstanceTree::removeInstance(HepRepInstance*) not implemented." << endl;
40 }
41 
42 vector<HepRepInstance*> DefaultHepRepInstanceTree::getInstances() {
43  return instances;
44 }
45 
47  instanceTrees.push_back(treeID);
48 }
49 
51  return typeTree;
52 }
53 
55  return instanceTrees;
56 }
57 
58 } // cheprep
59 
void addInstanceTree(HEPREP::HepRepTreeID *treeID)
void removeInstance(HEPREP::HepRepInstance *instance)
std::vector< HEPREP::HepRepTreeID * > instanceTrees
void addInstance(HEPREP::HepRepInstance *instance)
std::vector< HEPREP::HepRepInstance * > instances
std::vector< HEPREP::HepRepTreeID * > getInstanceTreeList()
HEPREP::HepRepInstanceTree * copy(HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepSelectFilter *filter)
static MCTruthManager * instance
void overlay(HEPREP::HepRepInstanceTree *instanceTree)
std::vector< HEPREP::HepRepInstance * > getInstances()