Rosetta 3.3
Namespaces | Functions
src/utility/utility.functions.hh File Reference

Numeric functions (to avoid dependency on numeric package) More...

#include <algorithm>
#include <cassert>
#include <cmath>
#include <limits>

Namespaces

namespace  utility
 

unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 1.


Functions

short int utility::min (short int const a, short int const b)
 min( short int, short int )
int utility::min (int const a, int const b)
 min( int, int )
long int utility::min (long int const a, long int const b)
 min( long int, long int )
unsigned short int utility::min (unsigned short int const a, unsigned short int const b)
 min( unsigned short int, unsigned short int )
unsigned int utility::min (unsigned int const a, unsigned int const b)
 min( unsigned int, unsigned int )
unsigned long int utility::min (unsigned long int const a, unsigned long int const b)
 min( unsigned long int, unsigned long int )
float utility::min (float const a, float const b)
 min( float, float )
double utility::min (double const a, double const b)
 min( double, double )
long double utility::min (long double const a, long double const b)
 min( long double, long double )
template<typename T >
T const & utility::min (T const &a, T const &b, T const &c)
 min( a, b, c )
template<typename T >
T const & utility::min (T const &a, T const &b, T const &c, T const &d)
 min( a, b, c, d )
template<typename T >
T const & utility::min (T const &a, T const &b, T const &c, T const &d, T const &e)
 min( a, b, c, d, e )
template<typename T >
T const & utility::min (T const &a, T const &b, T const &c, T const &d, T const &e, T const &f)
 min( a, b, c, d, e, f )
short int utility::max (short int const a, short int const b)
 max( short int, short int )
int utility::max (int const a, int const b)
 max( int, int )
long int utility::max (long int const a, long int const b)
 max( long int, long int )
unsigned short int utility::max (unsigned short int const a, unsigned short int const b)
 max( unsigned short int, unsigned short int )
unsigned int utility::max (unsigned int const a, unsigned int const b)
 max( unsigned int, unsigned int )
unsigned long int utility::max (unsigned long int const a, unsigned long int const b)
 max( unsigned long int, unsigned long int )
float utility::max (float const a, float const b)
 max( float, float )
double utility::max (double const a, double const b)
 max( double, double )
long double utility::max (long double const a, long double const b)
 max( long double, long double )
template<typename T >
T const & utility::max (T const &a, T const &b, T const &c)
 max( a, b, c )
template<typename T >
T const & utility::max (T const &a, T const &b, T const &c, T const &d)
 max( a, b, c, d )
template<typename T >
T const & utility::max (T const &a, T const &b, T const &c, T const &d, T const &e)
 max( a, b, c, d, e )
template<typename T >
T const & utility::max (T const &a, T const &b, T const &c, T const &d, T const &e, T const &f)
 max( a, b, c, d, e, f )

Detailed Description

Numeric functions (to avoid dependency on numeric package)

Author:
Stuart G. Mentzer (Stuart_Mentzer@objexx.com)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines