BAM
Abstract Machine for Bottom-Up Evaluation with the Push Method
Main Page
Related Pages
Classes
Files
File List
File Members
base
max.h
Go to the documentation of this file.
1
// ============================================================================
2
// Project: Deductive Database
3
// Filename: max.h
4
// Purpose: Maximum-Function
5
// Last Change: 01.08.2017
6
// Language: C++
7
// EMail: brass@informatik.uni-halle.de
8
// WWW: http://www.informatik.uni-halle.de/~brass/
9
// Address: Feldschloesschen 15, D-06120 Halle (Saale), GERMANY
10
// Copyright: (c) 2015-2017 by Stefan Brass
11
// License: See file "LICENSE" for copying conditions.
12
// Note: There is no warranty at all - this code may contain bugs.
13
// ============================================================================
14
15
22
//=============================================================================
23
// Include File Frame:
24
//=============================================================================
25
26
#ifndef MAX_INCLUDED
27
#define MAX_INCLUDED
28
29
30
//=============================================================================
31
// Used Types and Macros:
32
//=============================================================================
33
34
#ifndef VER_INCLUDED
35
#include "../base/ver.h"
36
#endif
37
38
#ifndef CHECK_INCLUDED
39
#include "../base/check.h"
40
#endif
41
42
43
//=============================================================================
44
// Template Function:
45
//=============================================================================
46
47
48
//-----------------------------------------------------------------------------
49
// Maximum:
50
//-----------------------------------------------------------------------------
51
60
//#define MAX(X,Y) (((X)>=(Y))?(X):(Y))
61
69
template
<
class
T>
70
inline
T
MAX
(T x, T y) {
71
if
(x >= y)
72
return
x;
73
else
74
return
y;
75
}
76
77
78
//=============================================================================
79
// End of Include File:
80
//=============================================================================
81
82
#endif
83
MAX
T MAX(T x, T y)
Definition:
max.h:70
Generated by
1.8.10