OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
ObjectFunction.h
Go to the documentation of this file.
1#ifndef OPAL_ObjectFunction_HH
2#define OPAL_ObjectFunction_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: ObjectFunction.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: ObjectFunction
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:33:34 $
17// $Author: Andreas Adelmann $
18//
19// ------------------------------------------------------------------------
20
21class Object;
22
23// Class ObjectFunction
24// ------------------------------------------------------------------------
26// The classes derived from this object are normally used to apply an
27// operation to all objects in the OPAL directory. This is done by calling
28// Directory::apply(functor). The functor itself takes a pointer to an
29// object as an argument, and defines an operator with the signature
30// [tt]void operator()(Object *)[/tt] which performs that operation.
31
33 virtual ~ObjectFunction();
34
36 virtual void operator()(Object*) const = 0;
37};
38
39#endif // OPAL_ObjectFunction_HH
The base class for all OPAL objects.
Definition Object.h:45
Abstract base class for functor objects whose argument is an Object.
virtual ~ObjectFunction()
virtual void operator()(Object *) const =0
The function to be executed.