#include <Relations.h>
Public Member Functions | |
Relation0 (const Target &t, const RelationFunctor &f) | |
~Relation0 () | |
void | apply () |
virtual RelationListItem * | retarget (const Target &target) const |
The Target must be a Field. The RelationFunctor must be Default Constructable and Assignable. In addition, it must provide the constructor
template<class L> RelationFunctor(const L &, const RelationFunctor &)
and the member function
template<class L> void operator()(const L &) const
where L is a Field. The constructor should use the arguments to initialize itself and the function should apply the relation.
Relation0< Target, RelationFunctor >::Relation0 | ( | const Target & | t, | |
const RelationFunctor & | f | |||
) | [inline] |
Relation0< Target, RelationFunctor >::~Relation0 | ( | ) | [inline] |
void Relation0< Target, RelationFunctor >::apply | ( | ) | [inline, virtual] |
Implements RelationListItem.
References RelationBase< Target, RelationFunctor >::functor_m, and RelationRetargetBase< Target >::target_m.
virtual RelationListItem* Relation0< Target, RelationFunctor >::retarget | ( | const Target & | target | ) | const [inline, virtual] |
Implements RelationRetargetBase< Target >.
References RelationBase< Target, RelationFunctor >::functor_m.