|
Geant4-11
|
Class for storing and comparing sorted nucleon configurations. More...
Public Types | |
| typedef G4int | NucleonItem |
Public Member Functions | |
| void | fill (NucleonItem *config, size_t n) |
| Fill configuration with array of NucleonItem. More... | |
| G4bool | operator< (const SortedNucleonConfiguration &rhs) const |
| Order operator for SortedNucleonConfiguration. More... | |
| SortedNucleonConfiguration & | operator= (const SortedNucleonConfiguration &rhs) |
| Assignment operator. More... | |
| SortedNucleonConfiguration () | |
| Constructor. More... | |
| SortedNucleonConfiguration (const SortedNucleonConfiguration &rhs) | |
| Copy constructor. More... | |
| void | swap (SortedNucleonConfiguration &rhs) |
| Helper method for the assignment operator. More... | |
| ~SortedNucleonConfiguration () | |
| Destructor. More... | |
Private Attributes | |
| NucleonItem * | nucleons |
| The real array. More... | |
| size_t | theSize |
| Size of the array. More... | |
Class for storing and comparing sorted nucleon configurations.
This class is actually just a wrapper around an array of Particle* pointers. It provides a lexicographical comparison operator (SortedNucleonConfiguration::operator<) for inclusion in std::set containers.
Definition at line 243 of file G4INCLClusteringModelIntercomparison.hh.
Definition at line 246 of file G4INCLClusteringModelIntercomparison.hh.
|
inline |
Constructor.
Definition at line 249 of file G4INCLClusteringModelIntercomparison.hh.
|
inline |
Copy constructor.
Definition at line 252 of file G4INCLClusteringModelIntercomparison.hh.
References field_utils::copy(), nucleons, and theSize.
|
inline |
Destructor.
Definition at line 260 of file G4INCLClusteringModelIntercomparison.hh.
References nucleons.
|
inline |
Fill configuration with array of NucleonItem.
Definition at line 288 of file G4INCLClusteringModelIntercomparison.hh.
References field_utils::copy(), CLHEP::detail::n, nucleons, and theSize.
Referenced by G4INCL::ClusteringModelIntercomparison::findClusterStartingFrom().
|
inline |
Order operator for SortedNucleonConfiguration.
The comparison is done lexicographically (i.e. from the first element to the last).
Definition at line 282 of file G4INCLClusteringModelIntercomparison.hh.
|
inline |
Assignment operator.
Definition at line 271 of file G4INCLClusteringModelIntercomparison.hh.
References swap().
|
inline |
Helper method for the assignment operator.
Definition at line 265 of file G4INCLClusteringModelIntercomparison.hh.
References nucleons, and theSize.
Referenced by operator=().
|
private |
The real array.
Definition at line 300 of file G4INCLClusteringModelIntercomparison.hh.
Referenced by fill(), operator<(), SortedNucleonConfiguration(), swap(), and ~SortedNucleonConfiguration().
|
private |
Size of the array.
Definition at line 297 of file G4INCLClusteringModelIntercomparison.hh.
Referenced by fill(), operator<(), SortedNucleonConfiguration(), and swap().