Min_Max.h File Reference

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

Go to the source code of this file.

Functions

template<class T >
ace pre h
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
const T & 
ace_min (const T &t1, const T &t2)
template<class T >
const T & ace_max (const T &t1, const T &t2)
template<class T >
const T & ace_min (const T &t1, const T &t2, const T &t3)
template<class T >
const T & ace_max (const T &t1, const T &t2, const T &t3)
template<class T >
const T & ace_range (const T &min, const T &max, const T &val)

Detailed Description

Id
Min_Max.h 74268 2006-08-28 13:50:49Z johnnyw

Define an appropriate set of min()/max() functions using templates.

Author:
Derek Dominish <Derek.Dominish@Australia.Boeing.com>

Definition in file Min_Max.h.


Function Documentation

template<class T >
const T& ace_max ( const T &  t1,
const T &  t2,
const T &  t3 
) [inline]

Definition at line 51 of file Min_Max.h.

00052 {
00053   return ace_max (ace_max (t1, t2), t3);
00054 }

template<class T >
const T& ace_max ( const T &  t1,
const T &  t2 
) [inline]

Definition at line 37 of file Min_Max.h.

00038 {
00039   return t1 > t2 ? t1 : t2;
00040 }

template<class T >
const T& ace_min ( const T &  t1,
const T &  t2,
const T &  t3 
) [inline]

Definition at line 44 of file Min_Max.h.

00045 {
00046   return ace_min (ace_min (t1, t2), t3);
00047 }

template<class T >
ace pre h ACE_BEGIN_VERSIONED_NAMESPACE_DECL const T& ace_min ( const T &  t1,
const T &  t2 
) [inline]

Definition at line 30 of file Min_Max.h.

00031 {
00032   return t2 > t1 ? t1 : t2;
00033 }

template<class T >
const T& ace_range ( const T &  min,
const T &  max,
const T &  val 
) [inline]

Definition at line 58 of file Min_Max.h.

00059 {
00060   return ace_min (ace_max (min, val), max);
00061 }

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:11:12 2009 for ACE by  doxygen 1.6.1