OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
BoolConstant.h
Go to the documentation of this file.
1 #ifndef OPAL_BoolConstant_HH
2 #define OPAL_BoolConstant_HH
3 // ------------------------------------------------------------------------
4 // $RCSfile: BoolConstant.h,v $
5 // ------------------------------------------------------------------------
6 // $Revision: 1.1.1.1 $
7 // ------------------------------------------------------------------------
8 // Copyright: see Copyright.readme
9 // ------------------------------------------------------------------------
10 //
11 // Class: BoolConstant
12 //
13 // ------------------------------------------------------------------------
14 //
15 // $Date: 2000/03/27 09:33:49 $
16 // $Author: Andreas Adelmann $
17 //
18 // ------------------------------------------------------------------------
19 
21 
22 
23 // Class BoolConstant
24 // ------------------------------------------------------------------------
26 
28 
29 public:
30 
32  BoolConstant();
33 
34  virtual ~BoolConstant();
35 
37  // Always false for constants.
38  virtual bool canReplaceBy(Object *object);
39 
41  virtual BoolConstant *clone(const std::string &name);
42 
44  virtual void print(std::ostream &) const;
45 
47  virtual void printValue(std::ostream &os) const;
48 
50  virtual bool getBool() const;
51 
52 private:
53 
54  // Not implemented.
55  BoolConstant(const BoolConstant &);
56  void operator=(const BoolConstant &);
57 
58  // Clone constructor.
59  BoolConstant(const std::string &name, BoolConstant *parent);
60 };
61 
62 #endif // OPAL_BoolConstant_HH
virtual void print(std::ostream &) const
Print the constant.
virtual BoolConstant * clone(const std::string &name)
Make clone.
virtual void printValue(std::ostream &os) const
Print its value.
BoolConstant()
Exemplar constructor.
virtual bool getBool() const
Return value.
void operator=(const BoolConstant &)
The base class for all OPAL objects.
Definition: Object.h:48
The base class for all OPAL value definitions.
The BOOL CONSTANT definition.
Definition: BoolConstant.h:27
const std::string name
virtual bool canReplaceBy(Object *object)
Test if object can be replaced.
virtual ~BoolConstant()