OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
Definition.h
Go to the documentation of this file.
1#ifndef OPAL_Definition_HH
2#define OPAL_Definition_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: Definition.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: Definition
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:33:34 $
17// $Author: Andreas Adelmann $
18//
19// ------------------------------------------------------------------------
20
22
23// Class Definition
24// ------------------------------------------------------------------------
26// It implements the common behaviour of definitions, it can also be used
27// via dynamic casting to determine whether an object represents a definition.
28
29class Definition : public Object {
30public:
31 virtual ~Definition();
32
34 // Return the string "DEFINITION".
35 virtual const std::string getCategory() const;
36
38 // If true, the object's execute() function should be traced.
39 // Always false for definitions.
40 virtual bool shouldTrace() const;
41
43 // If true, the data structure should be updated before calling execute().
44 // Always false for definitions.
45 virtual bool shouldUpdate() const;
46
47protected:
49 Definition(int size, const char* name, const char* help);
50
52 Definition(const std::string& name, Definition* parent);
53
54private:
55 // Not implemented.
58 void operator=(const Definition&);
59};
60
61#endif // OPAL_Definition_HH
The base class for all OPAL definitions.
Definition Definition.h:29
virtual bool shouldUpdate() const
Update flag.
virtual bool shouldTrace() const
Trace flag.
virtual const std::string getCategory() const
Return the object category as a string.
virtual ~Definition()
Definition(const Definition &)
void operator=(const Definition &)
The base class for all OPAL objects.
Definition Object.h:45