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