OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
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
24// Class ObjectFunction
25// ------------------------------------------------------------------------
27// The classes derived from this object are normally used to apply an
28// operation to all objects in the OPAL directory. This is done by calling
29// Directory::apply(functor). The functor itself takes a pointer to an
30// object as an argument, and defines an operator with the signature
31// [tt]void operator()(Object *)[/tt] which performs that operation.
32
34
35 virtual ~ObjectFunction();
36
38 virtual void operator()(Object *) const = 0;
39};
40
41#endif // OPAL_ObjectFunction_HH
The base class for all OPAL objects.
Definition: Object.h:48
Abstract base class for functor objects whose argument is an Object.
virtual ~ObjectFunction()
virtual void operator()(Object *) const =0
The function to be executed.