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)
Create a new blank container. 
G4TableTemplate(void)
Default constructor. 
G4long G4GetNumberOfElements(void)
Get the number of elements in the table. 
std::vector< T * > ContainerTable_
void G4AddContainer(T *NewContainer)
Adds a container to the table. 
T * G4GetContainer(unsigned int WhichContainer)
Retrieve a container from the table. 
G4TableTemplate * G4GetTable(void)
Gets a pointer to the table. 
G4TableTemplate is essentially a wrapper around a std::vector designed to work specifically with poin...