#include <ScatteringPower.h>
Public Methods | |
ScatteringComponentList () | |
ScatteringComponentList (const long nbComponent) | |
ScatteringComponentList (const ScatteringComponentList &old) | |
~ScatteringComponentList () | |
void | Reset () |
Reset the list. This does not free the memory, but simply forgets that there already are some entries. | |
const ScatteringComponent & | operator() (const long i) const |
Access to a component. | |
ScatteringComponent & | operator() (const long i) |
long | GetNbComponent () const |
Number of components. | |
void | operator= (const ScatteringComponentList &rhs) |
Assignement operator. | |
bool | operator== (const ScatteringComponentList &rhs) const |
Compare two lists. | |
void | operator+= (const ScatteringComponentList &rhs) |
Add another list of components. | |
void | operator+= (const ScatteringComponent &rhs) |
Add component. | |
void | operator++ () |
Add component, not initialized (!). | |
void | Print () const |
Print the list of Scattering components. For debugging. | |
void | ChangeMaxNbComponent (const long num) |
Manually change the maximum number of scattering components (should be done automagically). | |
Protected Attributes | |
long | mNbComponent |
Number of components so far. | |
ScatteringComponent * | mpScattComp |
The array of components. | |
long | mMaxNbComponent |
Max number of components to be allocated before increasing array size. |