Belle II Software  release-08-01-10
Relation< AFrom, ATo > Class Template Reference

Type for two related objects. More...

#include <Relation.h>

Inheritance diagram for Relation< AFrom, ATo >:
Collaboration diagram for Relation< AFrom, ATo >:

Public Types

using From = AFrom
 Type of from which the relation originates.
 
using To = ATo
 Type of to which the relation points.
 

Public Member Functions

bool operator< (const Relation< From, To > &rhs) const
 Operator for ordering of relations.
 
FromgetFrom () const
 Getter for the pointer to the from side object.
 
TogetTo () const
 Getter for the pointer to the to side object.
 
Relation< To, Fromreversed () const
 Make a relation in the opposite direciton with the same weight.
 

Private Types

using Super = std::pair< AFrom *, ATo * >
 Type of the base class.
 

Friends

bool operator< (const From *ptrFrom, const Relation< From, To > &relation)
 Operator to compare key type item to the relations for assoziative lookups.
 
bool operator< (const Relation< From, To > &relation, const From *ptrFrom)
 Operator to compare key type item to the relations for assoziative lookups.
 

Detailed Description

template<class AFrom, class ATo = AFrom>
class Belle2::TrackFindingCDC::Relation< AFrom, ATo >

Type for two related objects.

Definition at line 21 of file Relation.h.


The documentation for this class was generated from the following files: