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

Boolean and conditional functions
[Library Functions]


Functions

template<int N, typename T> ShGeneric< N, T > SH::operator< (const ShGeneric< N, T > &left, const ShGeneric< N, T > &right)
 Componentwise less-than.

template<int N, typename T> ShGeneric< N, T > operator< (const ShGeneric< N, T > &left, const ShGeneric< 1, T > &right)
template<int N, typename T> ShGeneric< N, T > operator< (const ShGeneric< 1, T > &left, const ShGeneric< N, T > &right)
template<typename T> ShGeneric< 1, T > operator< (const ShGeneric< 1, T > &left, const ShGeneric< 1, T > &right)
 SH_SHLIB_CONST_SCALAR_OP (operator<)
 SH_SHLIB_CONST_N_OP_BOTH (operator<)
template<int N, typename T> ShGeneric< N, T > SH::operator<= (const ShGeneric< N, T > &left, const ShGeneric< N, T > &right)
 Componentwise less-than-or-equal.

template<int N, typename T> ShGeneric< N, T > operator<= (const ShGeneric< N, T > &left, const ShGeneric< 1, T > &right)
template<int N, typename T> ShGeneric< N, T > operator<= (const ShGeneric< 1, T > &left, const ShGeneric< N, T > &right)
template<typename T> ShGeneric< 1, T > operator<= (const ShGeneric< 1, T > &left, const ShGeneric< 1, T > &right)
 SH_SHLIB_CONST_SCALAR_OP (operator<=)
 SH_SHLIB_CONST_N_OP_BOTH (operator<=)
template<int N, typename T> ShGeneric< N, T > SH::operator> (const ShGeneric< N, T > &left, const ShGeneric< N, T > &right)
 Componentwise greater-than.

template<int N, typename T> ShGeneric< N, T > operator> (const ShGeneric< N, T > &left, const ShGeneric< 1, T > &right)
template<int N, typename T> ShGeneric< N, T > operator> (const ShGeneric< 1, T > &left, const ShGeneric< N, T > &right)
template<typename T> ShGeneric< 1, T > operator> (const ShGeneric< 1, T > &left, const ShGeneric< 1, T > &right)
 SH_SHLIB_CONST_SCALAR_OP (operator>)
 SH_SHLIB_CONST_N_OP_BOTH (operator>)
template<int N, typename T> ShGeneric< N, T > SH::operator>= (const ShGeneric< N, T > &left, const ShGeneric< N, T > &right)
 Componentwise greater-than-or-equal.

template<int N, typename T> ShGeneric< N, T > operator>= (const ShGeneric< N, T > &left, const ShGeneric< 1, T > &right)
template<int N, typename T> ShGeneric< N, T > operator>= (const ShGeneric< 1, T > &left, const ShGeneric< N, T > &right)
template<typename T> ShGeneric< 1, T > operator>= (const ShGeneric< 1, T > &left, const ShGeneric< 1, T > &right)
 SH_SHLIB_CONST_SCALAR_OP (operator>=)
 SH_SHLIB_CONST_N_OP_BOTH (operator>=)
template<int N, typename T> ShGeneric< N, T > SH::operator== (const ShGeneric< N, T > &left, const ShGeneric< N, T > &right)
 Componentwise equal.

template<int N, typename T> ShGeneric< N, T > operator== (const ShGeneric< N, T > &left, const ShGeneric< 1, T > &right)
template<int N, typename T> ShGeneric< N, T > operator== (const ShGeneric< 1, T > &left, const ShGeneric< N, T > &right)
template<typename T> ShGeneric< 1, T > operator== (const ShGeneric< 1, T > &left, const ShGeneric< 1, T > &right)
template<int N, typename T> ShGeneric< N, T > SH::operator!= (const ShGeneric< N, T > &left, const ShGeneric< N, T > &right)
 Componentwise not equal.

template<int N, typename T> ShGeneric< N, T > operator!= (const ShGeneric< N, T > &left, const ShGeneric< 1, T > &right)
template<int N, typename T> ShGeneric< N, T > operator!= (const ShGeneric< 1, T > &left, const ShGeneric< N, T > &right)
template<typename T> ShGeneric< 1, T > operator!= (const ShGeneric< 1, T > &left, const ShGeneric< 1, T > &right)
 SH_SHLIB_CONST_SCALAR_OP (operator!=)
 SH_SHLIB_CONST_N_OP_BOTH (operator!=)
template<int N, typename T> ShGeneric< N, T > SH::cond (const ShGeneric< N, T > &condition, const ShGeneric< N, T > &left, const ShGeneric< N, T > &right)
 Conditional assignment.

template<int N, typename T> ShGeneric< N, T > cond (const ShGeneric< 1, T > &condition, const ShGeneric< N, T > &left, const ShGeneric< N, T > &right)
template<typename T> ShGeneric< 1, T > cond (const ShGeneric< 1, T > &condition, const ShGeneric< 1, T > &left, const ShGeneric< 1, T > &right)
template<int N, typename T> ShGeneric< N, T > SH::operator! (const ShGeneric< N, T > &a)
 Boolean negation.

template<int N, typename T> ShGeneric< N, T > SH::operator && (const ShGeneric< N, T > &a, const ShGeneric< N, T > &b)
 Componentwise minimum.

template<int N, typename T> ShGeneric< N, T > SH::operator|| (const ShGeneric< N, T > &a, const ShGeneric< N, T > &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 T>
ShGeneric< N, T > SH::cond const ShGeneric< N, T > &  condition,
const ShGeneric< N, T > &  left,
const ShGeneric< N, T > &  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 211 of file ShLibBooleanImpl.hpp.

Referenced by SH::ShCtrlGraphNode::append(), and ShUtil::groupEvenOddSort().


Generated on Mon Oct 18 14:17:52 2004 for Sh by doxygen 1.3.7