FreePOOMA  2.4.1
Public Member Functions | Protected Attributes
Relation1< Target, R1, RelationFunctor > Class Template Reference

Relation1 is a template used to construct relations that depend on one additional field (e.g., a = b). More...

#include <Relations.h>

Inheritance diagram for Relation1< Target, R1, RelationFunctor >:
Inheritance graph
[legend]
Collaboration diagram for Relation1< Target, R1, RelationFunctor >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Relation1 (const Target &t, const R1 &r, const RelationFunctor &f)
 ~Relation1 ()
void apply ()
virtual RelationListItemretarget (const Target &target) const

Protected Attributes

R1 r1_m

Detailed Description

template<class Target, class R1, class RelationFunctor>
class Relation1< Target, R1, RelationFunctor >

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.


Constructor & Destructor Documentation

template<class Target, class R1, class RelationFunctor>
Relation1< Target, R1, RelationFunctor >::Relation1 ( const Target &  t,
const R1 &  r,
const RelationFunctor &  f 
) [inline]
template<class Target, class R1, class RelationFunctor>
Relation1< Target, R1, RelationFunctor >::~Relation1 ( ) [inline]

Member Function Documentation

template<class Target, class R1, class RelationFunctor>
void Relation1< Target, R1, RelationFunctor >::apply ( ) [inline, virtual]
template<class Target, class R1, class RelationFunctor>
virtual RelationListItem* Relation1< Target, R1, RelationFunctor >::retarget ( const Target &  target) const [inline, virtual]

Member Data Documentation

template<class Target, class R1, class RelationFunctor>
R1 Relation1< Target, R1, RelationFunctor >::r1_m [protected]

The documentation for this class was generated from the following file: