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
21
namespace
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.
41
int
precedence
;
42
44
// A pointer to function returning a T.
45
T
(*
function
)();
46
};
47
48
}
// namespace Expressions
49
50
#endif
// OPAL_TFunction0_HH
T
double T
Definition
OPALTypes.h:8
Expressions
Representation objects and parsers for attribute expressions.
Definition
AbstractObjects/Expressions.h:64
Expressions::TFunction0
An operand-less function returning a T.
Definition
TFunction0.h:31
Expressions::TFunction0::precedence
int precedence
The operator precedence.
Definition
TFunction0.h:41
Expressions::TFunction0::name
const char * name
The function name or operator representation.
Definition
TFunction0.h:33
Expressions::TFunction0::function
T(* function)()
The actual operation.
Definition
TFunction0.h:45
src
Expressions
TFunction0.h
Generated on Mon Jun 1 2026 10:40:52 for OPALX (Object Oriented Parallel Accelerator Library for Exascal) by
1.9.8