waterfall  0.2dev
 All Classes Files Functions Variables Enumerations Enumerator Pages
Macros | Functions
utils.h File Reference

Header file for the utils class. More...

#include <utility>
#include <cppapp/cppapp.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ORDER_PAIR(a, b)
 

Functions

template<class T >
safeAdd (T a, T b)
 
template<class T >
safeMul (T a, T b)
 
template<class T >
pair< T, T > orderPair (T a, T b)
 

Detailed Description

Header file for the utils class.

Author
Jan MilĂ­k milik.nosp@m.jan@.nosp@m.fit.c.nosp@m.vut..nosp@m.cz
Date
2013-11-03

Macro Definition Documentation

#define ORDER_PAIR (   a,
 
)
Value:
{ \
if ((a) > (b)) { \
VAR(temp__, (a)); \
(a) = (b); \
(b) = temp__; \
} \
}