|
FreePOOMA
2.4.1
|
Relation1 is a template used to construct relations that depend on one additional field (e.g., a = b). More...
#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 |
Relation1 is a template used to construct relations that depend on one additional field (e.g., a = b).
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] |
| virtual RelationListItem* Relation1< Target, R1, RelationFunctor >::retarget | ( | const Target & | target | ) | const [inline, virtual] |
1.7.6.1