OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
TFunction0.h
Go to the documentation of this file.
1#ifndef OPAL_TFunction0_HH
2#define OPAL_TFunction0_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: TFunction0.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Template class: TFunction0
13//
14// ------------------------------------------------------------------------
15//
16// $Date: 2000/03/27 09:33:42 $
17// $Author: Andreas Adelmann $
18//
19// ------------------------------------------------------------------------
20
21namespace Expressions {
22
23 // Class TFunction0
24 // ----------------------------------------------------------------------
26 // This structure groups the properties of a function without arguments
27 // (e.g. a random generator), namely its name, its precedence, and a
28 // pointer to the function to evaluate it.
29
30 template <class T>
31 struct TFunction0 {
33 const char* name;
34
36 // May be one of the following:
37 // [dl]
38 // [dt]-2[dd] random generator,
39 // [dt]-1[dd] ordinary function,
40 // [dt]other[dd] operators.
42
44 // A pointer to function returning a T.
45 T (*function)();
46 };
47
48} // namespace Expressions
49
50#endif // OPAL_TFunction0_HH
double T
Definition OPALTypes.h:8
Representation objects and parsers for attribute expressions.
An operand-less function returning a T.
Definition TFunction0.h:31
int precedence
The operator precedence.
Definition TFunction0.h:41
const char * name
The function name or operator representation.
Definition TFunction0.h:33
T(* function)()
The actual operation.
Definition TFunction0.h:45