66 void remove(
const int& index);
Definition of interface for container classes.
Interface class for container classes.
Class that handles photons.
void free_members(void)
Delete class members.
void copy_members(const GPhotons &photons)
Copy class members.
void remove(const int &index)
Remove photon from container.
GPhotons * clone(void) const
Clone object.
std::string print(const GChatter &chatter=NORMAL) const
Print photon container information.
void reserve(const int &num)
Reserve memory for photons in container.
GPhotons & operator=(const GPhotons &photons)
Assignment operator.
bool is_empty(void) const
Signal if there are no photons.
int size(void) const
Return number of photons.
void clear(void)
Clear container.
std::string classname(void) const
Return class name.
GPhotons(void)
Void constructor.
GPhoton & operator[](const int &index)
Return reference to photon.
virtual ~GPhotons(void)
Destructor.
void extend(const GPhotons &photons)
Append photon container.
std::vector< GPhoton > m_photons
List of photons.
void append(const GPhoton &photon)
Append photon to container.
void init_members(void)
Initialise class members.
void insert(const int &index, const GPhoton &photon)
Insert photon into container.