frepple::utils::Functor Class Reference

This abstract class is the base class used for callbacks. More...

#include <utils.h>

Inheritance diagram for frepple::utils::Functor:

List of all members.

Public Member Functions

virtual bool callback (Object *v, const Signal a) const =0
virtual ~Functor ()

Additional Inherited Members

- Protected Member Functions inherited from frepple::utils::NonCopyable
 NonCopyable ()
 ~NonCopyable ()

Detailed Description

This abstract class is the base class used for callbacks.

See also:
MetaClass::callback
FunctorStatic
FunctorInstance

Definition at line 724 of file utils.h.


Constructor & Destructor Documentation

virtual frepple::utils::Functor::~Functor ( )
inlinevirtual

Destructor.

Definition at line 737 of file utils.h.


Member Function Documentation

virtual bool frepple::utils::Functor::callback ( Object v,
const Signal  a 
) const
pure virtual

This is the callback method.
The return value should be true in case the action is allowed to happen. In case a subscriber disapproves the action false is returned.
It is important that the callback methods are implemented in a thread-safe and re-entrant way!!!


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