33 #ifndef G4TABLETEMPLATE_HH
34 #define G4TABLETEMPLATE_HH
65 std::vector<T*> ContainerTable_;
82 ContainerTable_.push_back(NewContainer);
96 if(WhichContainer < ContainerTable_.size())
98 return ContainerTable_[WhichContainer];
108 ContainerTable_.push_back(
new T);
110 return ContainerTable_.back();
117 ContainerTable_.push_back(
new T(DefaultValue));
119 return ContainerTable_.back();
126 return ContainerTable_.size();
133 for(
unsigned int i = 0; i < ContainerTable_.size(); i++)
135 delete ContainerTable_[i];
T * G4GetNewContainer(void)
G4long G4GetNumberOfElements(void)
void G4AddContainer(T *NewContainer)
T * G4GetContainer(unsigned int WhichContainer)
G4TableTemplate * G4GetTable(void)