21 #ifndef yap_ParticleCombinationCache_h
22 #define yap_ParticleCombinationCache_h
88 virtual std::ostream&
print(std::ostream& os)
const override;
shared_ptr_type create_fsp(unsigned index) const
create final-state particle, it is not yet added to cache
Definition: ParticleCombinationCache.h:96
std::shared_ptr< ParticleCombination > shared_ptr_type
std::shared_ptr to T
Definition: WeakPtrCache.h:49
Template for a cache of weak_ptr's to objects.
Definition: WeakPtrCache.h:37
bool equal(const shared_ptr_type &A, const shared_ptr_type &B) const override
implements equality checking
Definition: ParticleCombinationCache.h:41
bool consistent() const
Check consistency of cache.
Definition: ParticleCombinationCache.cxx:70
Stores combinations of particle indices.
Definition: ParticleCombination.h:43
bool equal_up_and_down(const std::shared_ptr< const ParticleCombination > &A, const std::shared_ptr< const ParticleCombination > &B)
compare shared_ptr's to ParticleCombination by checking selves, daughters, and parents ...
Definition: ParticleCombination.cxx:236
virtual std::ostream & print(std::ostream &os) const override
stream the cache elements as a table
Definition: ParticleCombinationCache.cxx:103
weak_ptr_type find(unsigned index) const
Definition: ParticleCombinationCache.h:60
std::weak_ptr< ParticleCombination > weak_ptr_type
std::weak_ptr to T
Definition: WeakPtrCache.h:53
void addToCache(shared_ptr_type pc) override
add to cache
Definition: ParticleCombinationCache.cxx:54
weak_ptr_type find(const ParticleCombinationVector &D) const
Definition: ParticleCombinationCache.h:75
weak_ptr_type findByUnorderedContent(const std::vector< unsigned > &I) const
Definition: ParticleCombinationCache.cxx:39
shared_ptr_type fsp(unsigned index)
Definition: ParticleCombinationCache.h:46
Caches list of ParticleCombination's.
Definition: ParticleCombinationCache.h:36
shared_ptr_type operator[](shared_ptr_type t)
Definition: WeakPtrCache.h:110
shared_ptr_type create_copy(const ParticleCombination &other) const
create copy, it is not yet added to cache
Definition: ParticleCombinationCache.cxx:13
shared_ptr_type create_composite(const ParticleCombinationVector &D) const
create composite ParticleCombination, it is not yet added to cache
Definition: ParticleCombinationCache.cxx:28
weak_ptr_type find(shared_ptr_type t) const
Definition: WeakPtrCache.h:93
shared_ptr_type composite(const ParticleCombinationVector &D)
Definition: ParticleCombinationCache.h:52