OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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

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.

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 47 of file Callback.H.


Constructor & Destructor Documentation

Callback ( CallbackRegistry< CallbackType > &  cbr  )  [inline]

Construct and register with CallbackRegistry.

Definition at line 23 of file Callback.C.

Callback ( const Callback< CallbackType > &  cb  )  [inline]

Construct as copy.

Definition at line 32 of file Callback.C.

References Callback< CallbackType >::checkIn().

Here is the call graph for this function:

~Callback (  )  [inline, virtual]

Definition at line 43 of file Callback.C.


Member Function Documentation

bool checkIn (  )  [inline]

Register Callback with CallbackRegistry.

Definition at line 52 of file Callback.C.

References Callback< CallbackType >::checkOut().

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

Here is the call graph for this function:

Here is the caller graph for this function:

bool checkOut (  )  [inline]

Check-out Callback from CallbackRegistry.

Definition at line 67 of file Callback.C.

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

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd