PPL  1.2
Parma_Polyhedra_Library::Implementation::Watchdog::Handler_Function Class Reference

A kind of Handler calling a given function. More...

#include <Handler_defs.hh>

Inheritance diagram for Parma_Polyhedra_Library::Implementation::Watchdog::Handler_Function:
Collaboration diagram for Parma_Polyhedra_Library::Implementation::Watchdog::Handler_Function:

Public Member Functions

 Handler_Function (void(*const function)())
 Constructor with a given function. More...
 
virtual void act () const
 Does its job: calls the embedded function. More...
 
- Public Member Functions inherited from Parma_Polyhedra_Library::Implementation::Watchdog::Handler
virtual ~Handler ()
 Virtual destructor. More...
 

Private Attributes

void(*const f )()
 Pointer to the embedded function. More...
 

Detailed Description

A kind of Handler calling a given function.

Definition at line 80 of file Handler_defs.hh.

Constructor & Destructor Documentation

Parma_Polyhedra_Library::Implementation::Watchdog::Handler_Function::Handler_Function ( void(*)()  function)
inline

Constructor with a given function.

Definition at line 48 of file Handler_inlines.hh.

49  : f(function) {
50 }
void(*const f)()
Pointer to the embedded function.
Definition: Handler_defs.hh:91

Member Function Documentation

void Parma_Polyhedra_Library::Implementation::Watchdog::Handler_Function::act ( ) const
virtual

Does its job: calls the embedded function.

Implements Parma_Polyhedra_Library::Implementation::Watchdog::Handler.

Definition at line 33 of file Handler.cc.

33  {
34  (*f)();
35 }

Member Data Documentation

void(* const Parma_Polyhedra_Library::Implementation::Watchdog::Handler_Function::f) ()
private

Pointer to the embedded function.

Definition at line 91 of file Handler_defs.hh.


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