 |
Belle II Software
release-05-02-19
|
19 namespace TrackFindingCDC {
22 template <
class AFrom,
class ATo = AFrom>
23 class Relation :
public std::pair<AFrom*, ATo*> {
27 using Super = std::pair<AFrom*, ATo*>;
43 return (
getFrom() < rhs.getFrom() or
44 (not(rhs.getFrom() <
getFrom()) and
45 (
getTo() < rhs.getTo())));
51 return ptrFrom < relation.getFrom();
57 return relation.getFrom() < ptrFrom;
From * getFrom() const
Getter for the pointer to the from side object.
Type for two related objects.
ATo To
Type of to which the relation points.
AFrom From
Type of from which the relation originates.
Abstract base class for different kinds of events.
Relation< To, From > reversed() const
Make a relation in the opposite direciton with the same weight.
std::pair< AFrom *, ATo * > Super
Type of the base class.
To * getTo() const
Getter for the pointer to the to side object.
bool operator<(const Relation< From, To > &rhs) const
Operator for ordering of relations.