Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Boolean and conditional functions
[Library Functions]

Collaboration diagram for Boolean and conditional functions:


Functions

template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > SH::operator< (const ShGeneric< N, T1 > &left, const ShGeneric< N, T2 > &right)
 Componentwise less-than.
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator< (const ShGeneric< N, T1 > &left, const ShGeneric< 1, T2 > &right)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator< (const ShGeneric< 1, T1 > &left, const ShGeneric< N, T2 > &right)
template<typename T1, typename T2>
ShGeneric< 1, CT1T2 > operator< (const ShGeneric< 1, T1 > &left, const ShGeneric< 1, T2 > &right)
 SH_SHLIB_CONST_SCALAR_OP_DECL (operator<)
 SH_SHLIB_CONST_N_OP_BOTH_DECL (operator<)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > SH::operator<= (const ShGeneric< N, T1 > &left, const ShGeneric< N, T2 > &right)
 Componentwise less-than-or-equal.
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator<= (const ShGeneric< N, T1 > &left, const ShGeneric< 1, T2 > &right)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator<= (const ShGeneric< 1, T1 > &left, const ShGeneric< N, T2 > &right)
template<typename T1, typename T2>
ShGeneric< 1, CT1T2 > operator<= (const ShGeneric< 1, T1 > &left, const ShGeneric< 1, T2 > &right)
 SH_SHLIB_CONST_SCALAR_OP_DECL (operator<=)
 SH_SHLIB_CONST_N_OP_BOTH_DECL (operator<=)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > SH::operator> (const ShGeneric< N, T1 > &left, const ShGeneric< N, T2 > &right)
 Componentwise greater-than.
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator> (const ShGeneric< N, T1 > &left, const ShGeneric< 1, T2 > &right)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator> (const ShGeneric< 1, T1 > &left, const ShGeneric< N, T2 > &right)
template<typename T1, typename T2>
ShGeneric< 1, CT1T2 > operator> (const ShGeneric< 1, T1 > &left, const ShGeneric< 1, T2 > &right)
 SH_SHLIB_CONST_SCALAR_OP_DECL (operator>)
 SH_SHLIB_CONST_N_OP_BOTH_DECL (operator>)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > SH::operator>= (const ShGeneric< N, T1 > &left, const ShGeneric< N, T2 > &right)
 Componentwise greater-than-or-equal.
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator>= (const ShGeneric< N, T1 > &left, const ShGeneric< 1, T2 > &right)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator>= (const ShGeneric< 1, T1 > &left, const ShGeneric< N, T2 > &right)
template<typename T1, typename T2>
ShGeneric< 1, CT1T2 > operator>= (const ShGeneric< 1, T1 > &left, const ShGeneric< 1, T2 > &right)
 SH_SHLIB_CONST_SCALAR_OP_DECL (operator>=)
 SH_SHLIB_CONST_N_OP_BOTH_DECL (operator>=)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > SH::operator== (const ShGeneric< N, T1 > &left, const ShGeneric< N, T2 > &right)
 Componentwise equal.
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator== (const ShGeneric< N, T1 > &left, const ShGeneric< 1, T2 > &right)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator== (const ShGeneric< 1, T1 > &left, const ShGeneric< N, T2 > &right)
template<typename T1, typename T2>
ShGeneric< 1, CT1T2 > operator== (const ShGeneric< 1, T1 > &left, const ShGeneric< 1, T2 > &right)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > SH::operator!= (const ShGeneric< N, T1 > &left, const ShGeneric< N, T2 > &right)
 Componentwise not equal.
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator!= (const ShGeneric< N, T1 > &left, const ShGeneric< 1, T2 > &right)
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > operator!= (const ShGeneric< 1, T1 > &left, const ShGeneric< N, T2 > &right)
template<typename T1, typename T2>
ShGeneric< 1, CT1T2 > operator!= (const ShGeneric< 1, T1 > &left, const ShGeneric< 1, T2 > &right)
 SH_SHLIB_CONST_SCALAR_OP_DECL (operator!=)
 SH_SHLIB_CONST_N_OP_BOTH_DECL (operator!=)
template<int N, typename T1, typename T2, typename T3>
ShGeneric< N, CT1T2T3 > SH::cond (const ShGeneric< N, T1 > &condition, const ShGeneric< N, T2 > &left, const ShGeneric< N, T3 > &right)
 Conditional assignment.
template<int N, typename T1, typename T2, typename T3>
ShGeneric< N, CT1T2T3 > cond (const ShGeneric< 1, T1 > &condition, const ShGeneric< N, T2 > &left, const ShGeneric< N, T3 > &right)
template<int N, typename T1, typename T2, typename T3>
ShGeneric< N, CT1T2T3 > cond (const ShGeneric< 1, T1 > &condition, const ShGeneric< 1, T2 > &left, const ShGeneric< 1, T3 > &right)
template<int N, typename T>
ShGeneric< N, T > SH::operator! (const ShGeneric< N, T > &a)
 Boolean negation.
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > SH::operator && (const ShGeneric< N, T1 > &a, const ShGeneric< N, T2 > &b)
 Componentwise minimum.
template<int N, typename T1, typename T2>
ShGeneric< N, CT1T2 > SH::operator|| (const ShGeneric< N, T1 > &a, const ShGeneric< N, T2 > &b)
 Componentwise maximum.
template<int N, typename T>
ShGeneric< 1, T > SH::any (const ShGeneric< N, T > &a)
 Maximum of all components.
template<int N, typename T>
ShGeneric< 1, T > SH::all (const ShGeneric< N, T > &a)
 Minimum of all components.

Function Documentation

template<int N, typename T1, typename T2, typename T3>
ShGeneric< N, CT1T2T3 > SH::cond const ShGeneric< N, T1 > &  condition,
const ShGeneric< N, T2 > &  left,
const ShGeneric< N, T3 > &  right
 

Conditional assignment.

dest[i] = ((src[0][i] > 0.0) ? src[1][i] : src[2][i]) Note: CMP in the ARB_{vertex,fragment}_program spec has src[0][i] < 0.0, not greater than. The semantics used here follows that in Scheme and the ?: operator (which, unfortunately, cannot be overloaded in C++ right now). The boolean argument is a tuple, and so this is really a kind of conditional writemask if used with a tuple of booleans, although a scalar boolean may also be used in the first argument, in which case it applies to all elements.

Definition at line 223 of file ShLibBooleanImpl.hpp.

Referenced by ShUtil::groupEvenOddSort().


Generated on Mon Jan 24 18:37:59 2005 for Sh by  doxygen 1.4.1