Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Min_Max.h File Reference

#include "ace/pre.h"
#include "ace/post.h"

Include dependency graph for Min_Max.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.

Defines

#define ACE_MIN(a, b)   ace_min((a),(b))
#define ACE_MAX(a, b)   ace_max((a),(b))
#define ACE_RANGE(a, b, c)   ace_range((a),(b),(c))

Functions

template<class T> 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,v 1.1.1.3 2001/12/04 14:33:04 chad Exp

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

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

Definition in file Min_Max.h.


Define Documentation

#define ACE_MAX a,
     ace_max((a),(b))
 

Definition at line 69 of file Min_Max.h.

Referenced by ACE_Handler_Caching_Utility::clear_cache, ACE_Refcounted_Recyclable_Handler_Caching_Utility::clear_cache, ACE_Recyclable_Handler_Caching_Utility::clear_cache, ACE_Pair_Caching_Utility::clear_cache, and ACE_OS::thr_create.

#define ACE_MIN a,
     ace_min((a),(b))
 

Definition at line 68 of file Min_Max.h.

Referenced by ACE_FIFO_Recv_Msg::recv, and ACE_OS::thr_create.

#define ACE_RANGE a,
b,
     ace_range((a),(b),(c))
 

Definition at line 70 of 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 48 of file Min_Max.h.

References ace_max.

00049 {
00050   return ace_max (ace_max (t1, t2), t3);
00051 }

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

Definition at line 34 of file Min_Max.h.

Referenced by ace_max, and ace_range.

00035 {
00036   return t1 > t2 ? t1 : t2;
00037 }

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

Definition at line 41 of file Min_Max.h.

References ace_min.

Referenced by ace_range, and ACE_String_Base::compare.

00042 {
00043   return ace_min (ace_min (t1, t2), t3);
00044 }

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

Definition at line 27 of file Min_Max.h.

Referenced by ace_min.

00028 {
00029   return t2 > t1 ? t1 : t2;
00030 }

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

Definition at line 55 of file Min_Max.h.

References ace_max, and ace_min.

00056 {
00057   return ace_min (ace_max (min, val), max);
00058 }


Generated on Mon Jun 16 11:50:27 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002