33#ifndef G4TABLETEMPLATE_HH
34#define G4TABLETEMPLATE_HH
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)
std::vector< T * > ContainerTable_
G4long G4GetNumberOfElements(void)
T * G4GetNewContainer(G4int DefaultValue)
void G4AddContainer(T *NewContainer)
G4TableTemplate * G4GetTable(void)
T * G4GetContainer(unsigned int WhichContainer)