YAP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Functions
ParticleCombination.h File Reference
#include "fwd/ParticleCombination.h"
#include "fwd/Model.h"
#include <algorithm>
#include <functional>
#include <memory>
#include <ostream>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  ParticleCombination
 Stores combinations of particle indices. More...
 

Namespaces

 yap
 
 

Functions

bool disjoint (const ParticleCombinationVector &pcv)
 
const bool is_final_state_particle_combination (const ParticleCombination &pc)
 
const ParticleCombination & origin (const ParticleCombination &pc)
 
const bool is_initial_state_particle_combination (const ParticleCombination &pc, const Model &m)
 
const bool is_from_initial_state_particle_combination (const ParticleCombination &pc, const Model &m)
 
void prune_particle_combinations (ParticleCombinationSet &PCs)
 only keep particleCombinations with the highest number of indices in their top-most parent
 
std::string indices_string (const ParticleCombination &pc, std::string before="(", std::string after=")")
 Get indices listed as string.
 
std::string to_string (const ParticleCombination &pc)
 convert ParticleCombination to string
 
std::string to_string_with_parent (const ParticleCombination &pc)
 convert ParticleCombination with top-most parent to string
 
std::ostream & operator<< (std::ostream &os, const ParticleCombination &PC)
 streamer
 
ParticleCombinationEqualTo functions
constexpr bool equal_always (const std::shared_ptr< const ParticleCombination > &A, const std::shared_ptr< const ParticleCombination > &B)
 compare shared_ptr's to ParticleCombination, returning true always
 
bool equal_by_shared_pointer (const std::shared_ptr< const ParticleCombination > &A, const std::shared_ptr< const ParticleCombination > &B)
 compare shared_ptr's to ParticleCombination by shared_ptr only
 
bool equal_by_ordered_content (const std::shared_ptr< const ParticleCombination > &A, const std::shared_ptr< const ParticleCombination > &B)
 compare shared_ptr's to ParticleCombination by indices only
 
bool equal_by_orderless_content (const std::shared_ptr< const ParticleCombination > &A, const std::shared_ptr< const ParticleCombination > &B)
 compare shared_ptr's to ParticleCombination by indices, disregarding order
 
bool equal_down (const std::shared_ptr< const ParticleCombination > &A, const std::shared_ptr< const ParticleCombination > &B)
 compare shared_ptr's to ParticleCombination by checking selves and then all daughters
 
bool equal_up (const std::shared_ptr< const ParticleCombination > &A, const std::shared_ptr< const ParticleCombination > &B)
 compare shared_ptr's to ParticleCombination by checking selves and then parents
 
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
 
bool equal_down_by_orderless_content (const std::shared_ptr< const ParticleCombination > &A, const std::shared_ptr< const ParticleCombination > &B)