FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

Callback< CallbackType > Class Template Reference

Abstract class to handle automatic call-back registration with the CallbackRegistry. Derive from this class and extend by adding the appropriate callback functions. More...

#include <OpenFOAM/Callback.H>


Detailed Description

template<class CallbackType>
class Foam::Callback< CallbackType >

Abstract class to handle automatic call-back registration with the CallbackRegistry. Derive from this class and extend by adding the appropriate callback functions.

Source files

Definition at line 52 of file Callback.H.

List of all members.

Public Member Functions

 Callback (CallbackRegistry< CallbackType > &)
 Construct and register with CallbackRegistry.
 Callback (const Callback< CallbackType > &)
 Construct as copy.
virtual  ~Callback ()
bool  checkIn ()
 Register Callback with CallbackRegistry.
bool  checkOut ()
 Check-out Callback from CallbackRegistry.

Constructor & Destructor Documentation

Callback ( CallbackRegistry< CallbackType > &   cbr  )

Construct and register with CallbackRegistry.

Definition at line 31 of file Callback.C.

References Callback< CallbackType >::checkIn().

Callback ( const Callback< CallbackType > &   cb  )

Construct as copy.

Definition at line 40 of file Callback.C.

References Callback< CallbackType >::checkIn().

~Callback (  ) [virtual]

Definition at line 51 of file Callback.C.


Member Function Documentation

bool checkIn (  )

Register Callback with CallbackRegistry.

Definition at line 60 of file Callback.C.

Referenced by Callback< CallbackType >::Callback().

bool checkOut (  )

Check-out Callback from CallbackRegistry.

Definition at line 75 of file Callback.C.


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