Geant4  10.02
G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration Class Reference

Class for storing and comparing sorted nucleon configurations. More...

Public Types

typedef G4int NucleonItem
 

Public Member Functions

 SortedNucleonConfiguration ()
 Constructor. More...
 
 SortedNucleonConfiguration (const SortedNucleonConfiguration &rhs)
 Copy constructor. More...
 
 ~SortedNucleonConfiguration ()
 Destructor. More...
 
void swap (SortedNucleonConfiguration &rhs)
 Helper method for the assignment operator. More...
 
SortedNucleonConfigurationoperator= (const SortedNucleonConfiguration &rhs)
 Assignment operator. More...
 
G4bool operator< (const SortedNucleonConfiguration &rhs) const
 Order operator for SortedNucleonConfiguration. More...
 
void fill (NucleonItem *config, size_t n)
 Fill configuration with array of NucleonItem. More...
 

Private Attributes

size_t theSize
 Size of the array. More...
 
NucleonItemnucleons
 The real array. More...
 

Detailed Description

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 237 of file G4INCLClusteringModelIntercomparison.hh.

Member Typedef Documentation

Constructor & Destructor Documentation

G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration::SortedNucleonConfiguration ( )
inline

Constructor.

Definition at line 243 of file G4INCLClusteringModelIntercomparison.hh.

G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration::SortedNucleonConfiguration ( const SortedNucleonConfiguration rhs)
inline

Copy constructor.

Definition at line 246 of file G4INCLClusteringModelIntercomparison.hh.

References nucleons, and theSize.

G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration::~SortedNucleonConfiguration ( )
inline

Destructor.

Definition at line 254 of file G4INCLClusteringModelIntercomparison.hh.

References nucleons.

Member Function Documentation

void G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration::fill ( NucleonItem config,
size_t  n 
)
inline

Fill configuration with array of NucleonItem.

Definition at line 282 of file G4INCLClusteringModelIntercomparison.hh.

References n, nucleons, and theSize.

Referenced by G4INCL::ClusteringModelIntercomparison::findClusterStartingFrom().

+ Here is the caller graph for this function:

G4bool G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration::operator< ( const SortedNucleonConfiguration rhs) const
inline

Order operator for SortedNucleonConfiguration.

The comparison is done lexicographically (i.e. from the first element to the last).

Definition at line 276 of file G4INCLClusteringModelIntercomparison.hh.

References nucleons, and theSize.

SortedNucleonConfiguration& G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration::operator= ( const SortedNucleonConfiguration rhs)
inline

Assignment operator.

Definition at line 265 of file G4INCLClusteringModelIntercomparison.hh.

References swap().

+ Here is the call graph for this function:

void G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration::swap ( SortedNucleonConfiguration rhs)
inline

Helper method for the assignment operator.

Definition at line 259 of file G4INCLClusteringModelIntercomparison.hh.

References nucleons, and theSize.

Referenced by operator=().

+ Here is the caller graph for this function:

Member Data Documentation

NucleonItem* G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration::nucleons
private
size_t G4INCL::ClusteringModelIntercomparison::SortedNucleonConfiguration::theSize
private

Size of the array.

Definition at line 291 of file G4INCLClusteringModelIntercomparison.hh.

Referenced by fill(), operator<(), SortedNucleonConfiguration(), and swap().


The documentation for this class was generated from the following file: