KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
kjb::mcmcda::Compare_tracks< Track > Struct Template Reference

Functor to compare two tracks. If this were not defined, an association would order its tracks using operator<(pair, pair), which would eventually order by the address of the detection. We use this one to avoid this comparison by address and instead use a value comparison. This way the order will not change every time we read an association. More...

#include <mcmcda_association.h>

Public Member Functions

bool operator() (const Track &t1, const Track &t2) const
 Compare two tracks. More...
 
bool compare_elements (const typename Track::value_type &p1, const typename Track::value_type &p2) const
 Compare two track elements. More...
 

Detailed Description

template<class Track>
struct kjb::mcmcda::Compare_tracks< Track >

Functor to compare two tracks. If this were not defined, an association would order its tracks using operator<(pair, pair), which would eventually order by the address of the detection. We use this one to avoid this comparison by address and instead use a value comparison. This way the order will not change every time we read an association.

Member Function Documentation

template<class Track >
bool kjb::mcmcda::Compare_tracks< Track >::compare_elements ( const typename Track::value_type &  p1,
const typename Track::value_type &  p2 
) const
inline

Compare two track elements.

template<class Track >
bool kjb::mcmcda::Compare_tracks< Track >::operator() ( const Track &  t1,
const Track &  t2 
) const
inline

Compare two tracks.


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