OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
SHash.h
Go to the documentation of this file.
1#ifndef OPAL_SHash_HH
2#define OPAL_SHash_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: SHash.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: SHash
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:33:42 $
17// $Author: Andreas Adelmann $
18//
19// ------------------------------------------------------------------------
20
21#include <iosfwd>
23
24namespace Expressions {
25
26 // Template class SHash
27 // ----------------------------------------------------------------------
28
29 // Forward declaration.
30 class ATable;
31
33 // Represents a ``#'' value in a TABLE() expression.
34
35 class SHash : public Scalar<double> {
36 public:
38 // Store the TABLE() expression which will return the value of ``#''.
39 explicit SHash(const ATable&);
40
41 SHash(const SHash&);
42 virtual ~SHash();
43
45 virtual Scalar<double>* clone() const;
46
48 virtual double evaluate() const;
49
51 virtual void print(std::ostream& str, int precedence = 99) const;
52
53 private:
54 // Not implemented.
56 void operator=(const SHash&);
57
58 // The ATable object to which this SHash belongs.
59 // When evaluate() is called, the value for # is obtained from
60 // "itsTable".
62 };
63
64} // namespace Expressions
65
66#endif // OPAL_SHash_HH
An array expression generated from a TABLE() function.
Definition ATable.h:37
A scalar expression.
Definition SHash.h:35
const ATable & itsTable
Definition SHash.h:61
virtual void print(std::ostream &str, int precedence=99) const
Print expression.
Definition SHash.cpp:39
virtual Scalar< double > * clone() const
Make clone.
Definition SHash.cpp:35
virtual double evaluate() const
Evaluate.
Definition SHash.cpp:37
virtual ~SHash()
Definition SHash.cpp:33
void operator=(const SHash &)
Representation objects and parsers for attribute expressions.