FreePOOMA  2.4.1
Public Member Functions | Protected Attributes
RelationBase< Target, Functor > Class Template Reference

RelationBase is an abstract base class for all automatic relations. More...

#include <RelationBases.h>

Inheritance diagram for RelationBase< Target, Functor >:
Inheritance graph
[legend]
Collaboration diagram for RelationBase< Target, Functor >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RelationBase (const Target &t, const Functor &f)
 RelationBase (const RelationBase< Target, Functor > &model)
virtual ~RelationBase ()
Functor & functor ()
const Functor & functor () const

Protected Attributes

Functor functor_m

Detailed Description

template<class Target, class Functor>
class RelationBase< Target, Functor >

RelationBase is an abstract base class for all automatic relations.

It is sometimes necessary to be able to replace the target of an relation with another object. RelationListItem is not templated so the idea is to do a dynamic_cast to an RelationRetargetBase and then call the virtual retarget function, which needs to be implemented in RelationBase subclasses.


Constructor & Destructor Documentation

template<class Target, class Functor>
RelationBase< Target, Functor >::RelationBase ( const Target &  t,
const Functor &  f 
) [inline]
template<class Target, class Functor>
RelationBase< Target, Functor >::RelationBase ( const RelationBase< Target, Functor > &  model) [inline]
template<class Target, class Functor>
virtual RelationBase< Target, Functor >::~RelationBase ( ) [inline, virtual]

Member Function Documentation

template<class Target, class Functor>
Functor& RelationBase< Target, Functor >::functor ( ) [inline]
template<class Target, class Functor>
const Functor& RelationBase< Target, Functor >::functor ( ) const [inline]

Member Data Documentation

template<class Target, class Functor>
Functor RelationBase< Target, Functor >::functor_m [protected]

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