OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
RealVector.h
Go to the documentation of this file.
1 #ifndef OPAL_RealVector_HH
2 #define OPAL_RealVector_HH
3 // ------------------------------------------------------------------------
4 // $RCSfile: RealVector.h,v $
5 // ------------------------------------------------------------------------
6 // $Revision: 1.1.1.1 $
7 // ------------------------------------------------------------------------
8 // Copyright: see Copyright.readme
9 // ------------------------------------------------------------------------
10 //
11 // Class: RealVector
12 //
13 // ------------------------------------------------------------------------
14 //
15 // $Date: 2000/03/27 09:33:49 $
16 // $Author: Andreas Adelmann $
17 //
18 // ------------------------------------------------------------------------
19 
21 
22 
23 // Class RealVector
24 // ------------------------------------------------------------------------
26 
27 class RealVector: public ValueDefinition {
28 
29 public:
30 
32  RealVector();
33 
34  virtual ~RealVector();
35 
37  // True, if [b]rhs[/b] is a real vector.
38  virtual bool canReplaceBy(Object *rhs);
39 
41  virtual RealVector *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 double getRealComponent(int) const;
51 
52 private:
53 
54  // Not implemented.
55  RealVector(const RealVector &);
56  void operator=(const RealVector &);
57 
58  // Clone constructor.
59  RealVector(const std::string &name, RealVector *parent);
60 };
61 
62 #endif // OPAL_RealVector_HH
The REAL VECTOR definition.
Definition: RealVector.h:27
virtual ~RealVector()
Definition: RealVector.cpp:45
RealVector()
Exemplar constructor.
Definition: RealVector.cpp:29
virtual bool canReplaceBy(Object *rhs)
Test for allowed replacement.
Definition: RealVector.cpp:49
void operator=(const RealVector &)
virtual RealVector * clone(const std::string &name)
Make clone.
Definition: RealVector.cpp:55
virtual void printValue(std::ostream &os) const
Print its value.
Definition: RealVector.cpp:66
virtual double getRealComponent(int) const
Return indexed value.
Definition: RealVector.cpp:70
The base class for all OPAL objects.
Definition: Object.h:48
The base class for all OPAL value definitions.
const std::string name
virtual void print(std::ostream &) const
Print the vector.
Definition: RealVector.cpp:60