Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

Misc.H File Reference

#include "SPACE.H"

Include dependency graph for Misc.H:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

template<class T> T Min (const T &a, const T &b)
template<class T> T Max (const T &a, const T &b)
template<class T> T Abs (const T &a)
template<class T> void Swap (T &a, T &b)


Function Documentation

template<class T>
T Abs const T &  a  )  [inline]
 

Returns a copy of the absolute value of the value. Will work with any type T that can be compared against zero with T::operator>(const T, const T), or an equivalent construct, as well as a copy constructor, and an T::operator-() or equivalent. In particular, it will work with any integral or floating-point intrinsic type.

template<class T>
T Max const T &  a,
const T &  b
[inline]
 

Returns a copy of the maximum of the two values. Will work with any type T that supplies a T::operator>(const T, const T), or an equivalent construct, as well as a copy constructor. In particular, it will work with any integral or floating-point intrinsic type.

template<class T>
T Min const T &  a,
const T &  b
[inline]
 

Returns a copy of the minimum of the two values. Will work with any type T that supplies a T::operator<(const T, const T), or an equivalent construct, as well as a copy constructor. In particular, it will work with any integral or floating-point intrinsic type.

template<class T>
void Swap T &  a,
T &  b
[inline]
 

Swaps the two values. Type T must have a copy constructor and an assignment operator.


Generated on Wed Jun 2 13:56:38 2004 for Chombo&INSwithParticles by doxygen 1.3.2