FieldOperatorSpecializations.h File Reference

min()/max() specializations More...

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


Functions

template<class D1 , class T1 , class E1 >
MakeReturn< BinaryNode< FnMin,
typename CreateLeaf< Field< D1,
T1, E1 > >::Leaf_t, typename
CreateLeaf< Field< D1, T1, E1 >
>::Leaf_t > >::Expression_t 
min (const Field< D1, T1, E1 > &l, const Field< D1, T1, E1 > &r)
template<class D1 , class T1 , class E1 >
MakeReturn< BinaryNode< FnMax,
typename CreateLeaf< Field< D1,
T1, E1 > >::Leaf_t, typename
CreateLeaf< Field< D1, T1, E1 >
>::Leaf_t > >::Expression_t 
max (const Field< D1, T1, E1 > &l, const Field< D1, T1, E1 > &r)

Detailed Description

min()/max() specializations

The STL defines min() and max() functions with signatures template<class T> T min(T,T); If you generate a scope that includes both the std:: namespace, and the namespace containing the Pooma versions of min() and max(), then min(Field<1>,Field<1>) is ambiguous. These specializations disambiguate this common case.


Function Documentation

template<class D1 , class T1 , class E1 >
MakeReturn<BinaryNode<FnMin, typename CreateLeaf<Field<D1,T1,E1> >::Leaf_t, typename CreateLeaf<Field<D1,T1,E1> >::Leaf_t> >::Expression_t min ( const Field< D1, T1, E1 > &  l,
const Field< D1, T1, E1 > &  r 
) [inline]

template<class D1 , class T1 , class E1 >
MakeReturn<BinaryNode<FnMax, typename CreateLeaf<Field<D1,T1,E1> >::Leaf_t, typename CreateLeaf<Field<D1,T1,E1> >::Leaf_t> >::Expression_t max ( const Field< D1, T1, E1 > &  l,
const Field< D1, T1, E1 > &  r 
) [inline]


Generated on Wed Mar 16 06:17:24 2011 for FreePOOMA by  doxygen 1.5.9