OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Expressions
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
21
22
namespace
Expressions {
23
24
// Class TFunction0
25
// ----------------------------------------------------------------------
27
// This structure groups the properties of a function without arguments
28
// (e.g. a random generator), namely its name, its precedence, and a
29
// pointer to the function to evaluate it.
30
31
template
<
class
T>
struct
TFunction0
{
32
34
const
char
*
name
;
35
37
// May be one of the following:
38
// [dl]
39
// [dt]-2[dd] random generator,
40
// [dt]-1[dd] ordinary function,
41
// [dt]other[dd] operators.
42
int
precedence
;
43
45
// A pointer to function returning a T.
46
T
(*
function
)();
47
};
48
49
}
50
51
#endif // OPAL_TFunction0_HH
T
Definition:
rbendmap.h:8
Expressions::TFunction0::precedence
int precedence
The operator precedence.
Definition:
TFunction0.h:42
Expressions::TFunction0::name
const char * name
The function name or operator representation.
Definition:
TFunction0.h:34
Expressions::TFunction0
An operand-less function returning a T.
Definition:
TFunction0.h:31
Generated on Sat Jan 4 2020 14:48:03 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5