RelationBase< Target, Functor > Class Template Reference

#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.


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.

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


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:

Generated on Sun May 17 21:44:02 2009 for FreePOOMA by  doxygen 1.5.5