#include <RelationBases.h>
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 |
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.
RelationBase< Target, Functor >::RelationBase | ( | const Target & | t, | |
const Functor & | f | |||
) | [inline] |
RelationBase< Target, Functor >::RelationBase | ( | const RelationBase< Target, Functor > & | model | ) | [inline] |
virtual RelationBase< Target, Functor >::~RelationBase | ( | ) | [inline, virtual] |
Functor& RelationBase< Target, Functor >::functor | ( | ) | [inline] |
const Functor& RelationBase< Target, Functor >::functor | ( | ) | const [inline] |
Functor RelationBase< Target, Functor >::functor_m [protected] |
Referenced by RelationBase< Target, RelationFunctor >::functor().