OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
RealVector.h
Go to the documentation of this file.
1//
2// Class RealVector
3// The REAL VECTOR definition.
4//
5// Copyright (c) 2000 - 2021, Paul Scherrer Institut, Villigen PSI, Switzerland
6// All rights reserved
7//
8// This file is part of OPAL.
9//
10// OPAL is free software: you can redistribute it and/or modify
11// it under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// You should have received a copy of the GNU General Public License
16// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17//
18#ifndef OPAL_RealVector_HH
19#define OPAL_RealVector_HH
20
22
24public:
26 RealVector();
27
28 virtual ~RealVector();
29
31 // True, if [b]rhs[/b] is a real vector.
32 virtual bool canReplaceBy(Object* rhs);
33
35 virtual RealVector* clone(const std::string& name);
36
38 virtual void print(std::ostream&) const;
39
41 virtual void printValue(std::ostream& os) const;
42
44 virtual double getRealComponent(int) const;
45
46private:
47 // Not implemented.
49 void operator=(const RealVector&);
50
51 // Clone constructor.
52 RealVector(const std::string& name, RealVector* parent);
53};
54
55#endif // OPAL_RealVector_HH
The base class for all OPAL objects.
Definition Object.h:45
virtual bool canReplaceBy(Object *rhs)
Test for allowed replacement.
virtual double getRealComponent(int) const
Return indexed value.
RealVector(const RealVector &)
void operator=(const RealVector &)
virtual RealVector * clone(const std::string &name)
Make clone.
virtual ~RealVector()
virtual void print(std::ostream &) const
Print the vector.
RealVector()
Exemplar constructor.
virtual void printValue(std::ostream &os) const
Print its value.
The base class for all OPAL value definitions.