FreeFOAM The Cross-Platform CFD Toolkit
CallbackRegistry< CallbackType > Class Template Reference

Base class with which callbacks are registered. More...

#include <OpenFOAM/CallbackRegistry.H>


Detailed Description

template<class CallbackType>
class Foam::CallbackRegistry< CallbackType >

Base class with which callbacks are registered.

Derive from this class and extend by adding the appropriate callback functions that loop and call the callback functions for each entry.

Source files

Definition at line 67 of file CallbackRegistry.H.

+ Inheritance diagram for CallbackRegistry< CallbackType >:
+ Collaboration diagram for CallbackRegistry< CallbackType >:

List of all members.

Public Member Functions

 CallbackRegistry ()
 Construct null.
virtual ~CallbackRegistry ()
- Public Member Functions inherited from UIDLList< CallbackType >
 UIDLList ()
 Null construct.
 UIDLList (CallbackTypea)
 Construct given initial T.
 UIDLList (Istream &is)
 Construct from Istream.
- Public Member Functions inherited from UILList< DLListBase, CallbackType >
 UILList ()
 Null construct.
 UILList (CallbackType *a)
 Construct given initial T.
 UILList (const UILList< DLListBase, CallbackType > &)
 Construct as copy.
CallbackType * first ()
 Return the first entry.
const CallbackType * first () const
 Return the first entry.
CallbackType * last ()
 Return the last entry.
const CallbackType * last () const
 Return the last entry.
CallbackType * removeHead ()
 Remove and return head.
CallbackType * remove (CallbackType *p)
 Remove and return element.
CallbackType * remove (iterator &it)
 Remove and return specified by iterator.
void operator= (const UILList< DLListBase, CallbackType > &)
bool operator== (const UILList< DLListBase, CallbackType > &) const
 Equality operation on ULists of the same type.
bool operator!= (const UILList< DLListBase, CallbackType > &) const
 The opposite of the equality operation. Takes linear time.
- Public Member Functions inherited from DLListBase
 DLListBase ()
 Null construct.
 DLListBase (link *)
 Construct given initial entry.
 ~DLListBase ()
label size () const
 Return number of elements in list.
bool empty () const
 Return true if the list is empty.
void insert (link *)
 Add at head of list.
void append (link *)
 Add at tail of list.
bool swapUp (link *)
 Swap this element with the one above unless it is at the top.
bool swapDown (link *)
 Swap this element with the one below unless it is at the bottom.
linkremove (link *)
 Remove and return element.
linkreplace (link *oldLink, link *newLink)
 Replace oldLink with newLink and return element.
linkreplace (iterator &oldIter, link *newLink)
 Replace oldIter with newLink and return element.
void clear ()
 Clear the list.
void transfer (DLListBase &)
 Transfer the contents of the argument into this List.
iterator begin ()
const iteratorend ()
const_iterator cbegin () const
const const_iteratorcend () const
const_iterator begin () const
const const_iteratorend () const

Constructor & Destructor Documentation

Construct null.

Definition at line 31 of file CallbackRegistry.C.

~CallbackRegistry ( )
virtual

Definition at line 41 of file CallbackRegistry.C.

References forAllIter.


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