15#include <boost/functional/hash.hpp>
45 void AddLink(
int linkIndex,
float linkWeight)
103 for (
int j = 0; j < other.
fNofLinks; ++j) {
119 std::ostringstream out;
122 out <<
" Link[" << i <<
"] = " <<
fLinks[i] <<
", Weight = " <<
fLinkWeights[i] <<
'\n';
129 std::array<int, 5>
fLinks = {-1, -1, -1, -1, -1};
Compile-time constants definition for the CA tracking algorithm.
TODO: SZh 8.11.2022: add selection of parameterisation.
~McMatch()=default
Destructor.
McMatch(McMatch &&)=default
Move constructor.
float GetLinkWeight(int i) const
std::array< float, 5 > fLinkWeights
Array of matched link weights.
std::string ToString() const
int GetBestLinkIndex() const
McMatch & operator=(const McMatch &)=default
Copy assignment operator.
void AddLink(int linkIndex, float linkWeight)
bool operator!=(const McMatch &other) const
int fBestLinkIndex
Index of the best link in fLinks array.
McMatch & operator=(McMatch &&)=default
Move assignment operator.
int fNofLinks
Number of matched links.
McMatch(const McMatch &)=default
Copy constructor.
bool operator==(const McMatch &other) const
std::array< int, 5 > fLinks
Array of matched link indices.
McMatch()=default
Default constructor.