#include <Relations.h>
Public Member Functions | |
Relation1 (const Target &t, const R1 &r, const RelationFunctor &f) | |
~Relation1 () | |
void | apply () |
virtual RelationListItem * | retarget (const Target &target) const |
Protected Attributes | |
R1 | r1_m |
The Target must be a Field. The RelationFunctor must be Default Constructable and Assignable. In addition, it must provide the constructor
template<class L, class R1, class R2> RelationFunctor(const L &, const R1 &, const RelationFunctor &)
and the member function
template<class L, class R1> void operator()(const L &, const R1 &) const
where L and R1 are Fields. The constructor should use the arguments to initialize itself and the function should apply the relation.
Relation1< Target, R1, RelationFunctor >::Relation1 | ( | const Target & | t, | |
const R1 & | r, | |||
const RelationFunctor & | f | |||
) | [inline] |
Relation1< Target, R1, RelationFunctor >::~Relation1 | ( | ) | [inline] |
void Relation1< Target, R1, RelationFunctor >::apply | ( | ) | [inline, virtual] |
virtual RelationListItem* Relation1< Target, R1, RelationFunctor >::retarget | ( | const Target & | target | ) | const [inline, virtual] |