#include <Relations.h>
Public Member Functions | |
Relation5 (const Target &t, const R1 &r1, const R2 &r2, const R3 &r3, const R4 &r4, const R5 &r5, const RelationFunctor &f) | |
~Relation5 () | |
void | apply () |
virtual RelationListItem * | retarget (const Target &target) const |
Protected Attributes | |
R1 | r1_m |
R2 | r2_m |
R3 | r3_m |
R4 | r4_m |
R5 | r5_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, class R3, class R4, class R5> RelationFunctor(const L &, const R1 &, const R2 &, const R3 &, const R4 &, const R5 &, const RelationFunctor &)
and the member function
template<class L, class R1, class R2, class R3, class R4, class R5> void operator()(const L &const R1 &, const R2 &, const R3 &, const R4 &, const R5 &) const
where L, R1, R2, R3, R4, and R5 are Fields. The constructor should use the arguments to initialize itself and the function should apply the relation.
Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::Relation5 | ( | const Target & | t, | |
const R1 & | r1, | |||
const R2 & | r2, | |||
const R3 & | r3, | |||
const R4 & | r4, | |||
const R5 & | r5, | |||
const RelationFunctor & | f | |||
) | [inline] |
Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::~Relation5 | ( | ) | [inline] |
void Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::apply | ( | ) | [inline, virtual] |
Implements RelationListItem.
References RelationBase< Target, RelationFunctor >::functor_m, Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r1_m, Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r2_m, Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r3_m, Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r4_m, Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r5_m, and RelationRetargetBase< Target >::target_m.
virtual RelationListItem* Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::retarget | ( | const Target & | target | ) | const [inline, virtual] |
Implements RelationRetargetBase< Target >.
References RelationBase< Target, RelationFunctor >::functor_m, Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r1_m, Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r2_m, Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r3_m, Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r4_m, and Relation5< Target, R1, R2, R3, R4, R5, RelationFunctor >::r5_m.