Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Functions
Saf/Algo/Selection/MinMax.h File Reference

Algorithms for finding minimum and maximum values.
More...

#include "../../Collection/Pair.h"
#include "../Predicate.h"

Go to the source code of this file.

Namespaces

namespace  Saf
 Global library namespace.
namespace  Saf::Algo
 Generic data handling algorithms and structures.
namespace  Saf::Algo::Selection
 Selection algorithms.

Functions

template<class T >
Saf::Algo::Selection::Max (const T &x, const T &y)
 Get a maximum of two numbers.
template<class T , class Pred >
Saf::Algo::Selection::Max (const T &x, const T &y, Pred pred)
 Get a maximum of two numbers using a predicate pred.
template<class T >
Saf::Algo::Selection::Max (const T &x, const T &y, const T &z)
 Get a maximum of three numbers.
template<class T , class Pred >
Saf::Algo::Selection::Max (const T &x, const T &y, const T &z, Pred pred)
 Get a maximum of three numbers using a predicate pred.
template<class T >
Saf::Algo::Selection::Min (const T &x, const T &y)
 Get a minimum of two numbers.
template<class T , class Pred >
Saf::Algo::Selection::Min (const T &x, const T &y, Pred pred)
 Get a minimum of two numbers using a predicate pred.
template<class T >
Saf::Algo::Selection::Min (const T &x, const T &y, const T &z)
 Get a minimum of three numbers.
template<class T , class Pred >
Saf::Algo::Selection::Min (const T &x, const T &y, const T &z, Pred pred)
 Get a minimum of three numbers using a predicate pred.
template<class T , class Pred >
Collection::Pair< T, T > Saf::Algo::Selection::MinMax (const T &x, const T &y, Pred pred)
 Get simultaneously a minimum and a maximum of two values.
template<class T >
Collection::Pair< T, T > Saf::Algo::Selection::MinMax (const T &x, const T &y)
 Get simultaneously a minimum and a maximum of two values.
template<class T , class Pred >
Collection::Pair< T, T > Saf::Algo::Selection::MinMax (const T &x, const T &y, const T &z, Pred pred)
 Get simultaneously a minimum and a maximum of three values.
template<class T >
Collection::Pair< T, T > Saf::Algo::Selection::MinMax (const T &x, const T &y, const T &z)
 Get simultaneously a minimum and a maximum of three values.

Detailed Description

Algorithms for finding minimum and maximum values.
Author:
Ondrej Danek ondre.nosp@m.j.da.nosp@m.nek@g.nosp@m.mail.nosp@m..com
Date:
2012