OPALX (Object Oriented Parallel Accelerator Library for Exascale)
MINIorX
OPALX
TFunction2.h
Go to the documentation of this file.
1
#ifndef OPAL_TFunction2_HH
2
#define OPAL_TFunction2_HH
3
4
// ------------------------------------------------------------------------
5
// $RCSfile: TFunction2.h,v $
6
// ------------------------------------------------------------------------
7
// $Revision: 1.1.1.1 $
8
// ------------------------------------------------------------------------
9
// Copyright: see Copyright.readme
10
// ------------------------------------------------------------------------
11
//
12
// Template class: TFunction2<T,U>
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 TFunction2
25
// ----------------------------------------------------------------------
27
// This structure groups the properties of a function with two arguments,
28
// namely its name, its precedence, and a pointer to the function to
29
// evaluate it.
30
31
template
<
class
T,
class
U>
struct
TFunction2
{
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
T
(*
function
)(U, U);
46
};
47
48
}
49
50
#endif
// OPAL_TFunction2_HH
Expressions
Representation objects and parsers for attribute expressions.
Definition:
AbstractObjects/Expressions.h:64
Expressions::TFunction2
A function of two U's returning a T.
Definition:
TFunction2.h:31
Expressions::TFunction2::precedence
int precedence
The operator precedence.
Definition:
TFunction2.h:42
Expressions::TFunction2::name
const char * name
The function name or operator representation.
Definition:
TFunction2.h:34
Expressions::TFunction2::function
T(* function)(U, U)
The actual operation.
Definition:
TFunction2.h:45
T
double T
Definition:
opalx/src/PartBunch/datatypes.h:7
src
Expressions
TFunction2.h
Generated on Fri Jan 23 2026 14:40:00 for OPALX (Object Oriented Parallel Accelerator Library for Exascale) by
1.9.3