![]() |
Belle II Software
release-08-02-05
|
Type for two related objects. More...
#include <Relation.h>


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. | |
| From * | getFrom () const |
| Getter for the pointer to the from side object. | |
| To * | getTo () const |
| Getter for the pointer to the to side object. | |
| Relation< To, From > | reversed () 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. | |
Type for two related objects.
Definition at line 21 of file Relation.h.