33#ifndef G4TABLETEMPLATE_HH
34#define G4TABLETEMPLATE_HH
64 std::vector<T*> ContainerTable_;
73 ContainerTable_.push_back(NewContainer);
85 if (WhichContainer < ContainerTable_.size()) {
86 return ContainerTable_[WhichContainer];
95 ContainerTable_.push_back(
new T);
97 return ContainerTable_.back();
103 ContainerTable_.push_back(
new T(DefaultValue));
105 return ContainerTable_.back();
111 return ContainerTable_.size();
117 for (
unsigned int i = 0; i < ContainerTable_.size(); i++) {
118 delete ContainerTable_[i];
G4TableTemplate * G4GetTable()
G4long G4GetNumberOfElements()
T * G4GetNewContainer(G4int DefaultValue)
void G4AddContainer(T *NewContainer)
G4TableTemplate()=default
T * G4GetContainer(unsigned int WhichContainer)