YAP
|
Stores combinations of particle indices. More...
#include <ParticleCombination.h>
Public Member Functions | |
bool | consistent () const |
Checks consistency of object. | |
Getters | |
const std::vector< unsigned > & | indices () const |
Get vector of indices (const) | |
const ParticleCombinationVector & | daughters () const |
Get vector of daughters (const) | |
std::shared_ptr < ParticleCombination > | parent () const |
get parent (const) | |
Protected Member Functions | |
void | addDaughter (std::shared_ptr< ParticleCombination > daughter) |
Private Member Functions | |
ParticleCombination ()=default | |
default constructor | |
ParticleCombination (unsigned index) | |
Final-state-particle constructor, see ParticleCombinationCache::fsp for details. | |
ParticleCombination (const ParticleCombination &)=delete | |
Copy constructor is deleted. | |
ParticleCombination (ParticleCombination &&)=delete | |
Move constructor is deleted. | |
ParticleCombination & | operator= (const ParticleCombination &)=delete |
Copy assignment is deleted. | |
ParticleCombination & | operator= (ParticleCombination &&)=delete |
Move assignment is deleted. | |
Private Attributes | |
std::weak_ptr < ParticleCombination > | Parent_ |
Parent of the particle combination. | |
ParticleCombinationVector | Daughters_ |
vector of daughters | |
std::vector< unsigned > | Indices_ |
vector indices of daughters | |
Friends | |
class | ParticleCombinationCache |
grant friend access to ParticleCombinationCache for creating ParticleCombination's | |
Stores combinations of particle indices.
Constructors are private. New ParticleCombination objects are created through the ParticleCombinationCache
|
protected |
Add daughter ParticleCombination
daughter | Shared pointer to ParticleCombination object representing a daughter |
Check that new daughter does not share content with other daughters?
Check that new daughter doesn't already have parent set