Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
DefaultHepRepTypeTree.cc
이 파일의 문서화 페이지로 가기
1 // Copyright FreeHEP, 2005.
2 
3 #include <iostream>
4 
6 
7 using namespace std;
8 using namespace HEPREP;
9 
14 namespace cheprep {
15 
16 DefaultHepRepTypeTree::DefaultHepRepTypeTree(HepRepTreeID* typeTree)
17  : DefaultHepRepTreeID(typeTree->getName(), typeTree->getVersion()) {
18  delete typeTree;
19 }
20 
22  for (vector<HepRepType*>::iterator i1 = types.begin(); i1 != types.end(); i1++) {
23  delete (*i1);
24  }
25 }
26 
28  cerr << "DefaultHepRepTypeTree::copy() not implemented." << endl;
29  return NULL;
30 }
31 
33  // FIXME should check if type already exists
34  types.push_back(type);
35 }
36 
37 vector<HepRepType*> DefaultHepRepTypeTree::getTypeList() {
38  return types;
39 }
40 
42  cerr << "DefaultHepRepTypeTree::getType(string) not implemented." << endl;
43  return NULL;
44 }
45 
46 } // cheprep
std::vector< HEPREP::HepRepType * > types
std::vector< HEPREP::HepRepType * > getTypeList()
void addType(HEPREP::HepRepType *type)
HEPREP::HepRepType * getType(std::string name)
std::string getName(const ParticleType t)
Get the native INCL name of the particle.
HEPREP::HepRepTypeTree * copy()