OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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
21namespace Expressions {
22
23 // Class TFunction2
24 // ----------------------------------------------------------------------
26 // This structure groups the properties of a function with two arguments,
27 // namely its name, its precedence, and a pointer to the function to
28 // evaluate it.
29
30 template <class T, class U>
31 struct TFunction2 {
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 T (*function)(U, U);
45 };
46
47} // namespace Expressions
48
49#endif // OPAL_TFunction2_HH
double T
Definition OPALTypes.h:8
Representation objects and parsers for attribute expressions.
A function of two U's returning a T.
Definition TFunction2.h:31
int precedence
The operator precedence.
Definition TFunction2.h:41
const char * name
The function name or operator representation.
Definition TFunction2.h:33
T(* function)(U, U)
The actual operation.
Definition TFunction2.h:44