![]() |
Belle II Software development
|
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 direction with the same weight. | |
Public Attributes | |
| T1 | first_type |
| STL member. | |
| T2 | second_type |
| STL member. | |
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 associative lookups. | |
| bool | operator< (const Relation< From, To > &relation, const From *ptrFrom) |
| Operator to compare key type item to the relations for associative lookups. | |
Type for two related objects.
Definition at line 21 of file Relation.h.
| using From = AFrom |
Type of from which the relation originates.
Definition at line 29 of file Relation.h.
|
private |
Type of the base class.
Definition at line 25 of file Relation.h.
| using To = ATo |
Type of to which the relation points.
Definition at line 32 of file Relation.h.
|
inline |
Getter for the pointer to the from side object.
Definition at line 59 of file Relation.h.
|
inline |
Getter for the pointer to the to side object.
Definition at line 65 of file Relation.h.
|
inline |
Operator for ordering of relations.
Definition at line 39 of file Relation.h.
Make a relation in the opposite direction with the same weight.
Definition at line 71 of file Relation.h.
|
friend |
Operator to compare key type item to the relations for associative lookups.
Definition at line 47 of file Relation.h.
|
friend |
Operator to compare key type item to the relations for associative lookups.
Definition at line 53 of file Relation.h.