ra4_draw
4bd0201e3d922d42bd545d4b045ed44db33454a4
|
Functions | |
template<typename Operator > | |
function< ScalarFunc > | ApplyOp (const function< ScalarFunc > &f, const Operator &op) |
Get a functor applying unary operator op to f. More... | |
template<typename Operator > | |
function< VectorFunc > | ApplyOp (const function< VectorFunc > &f, const Operator &op) |
Get a functor applying unary operator op to f. More... | |
template<typename Operator > | |
pair< function< ScalarFunc >, function< VectorFunc > > | ApplyOp (const function< ScalarFunc > &sfa, const function< VectorFunc > &vfa, const function< ScalarFunc > &sfb, const function< VectorFunc > &vfb, const Operator &op) |
Get a functor applying binary operator op to operands (sfa or vfa) and (sfb or vfb) More... | |
template<> | |
pair< function< ScalarFunc >, function< VectorFunc > > | ApplyOp (const function< ScalarFunc > &sfa, const function< VectorFunc > &vfa, const function< ScalarFunc > &sfb, const function< VectorFunc > &vfb, const logical_and< ScalarType > &) |
Get a functor applying binary "&&" to operands (sfa or vfa) and (sfb or vfb) More... | |
template<> | |
pair< function< ScalarFunc >, function< VectorFunc > > | ApplyOp (const function< ScalarFunc > &sfa, const function< VectorFunc > &vfa, const function< ScalarFunc > &sfb, const function< VectorFunc > &vfb, const logical_or< ScalarType > &) |
Get a functor applying binary "||" to operands (sfa or vfa) and (sfb or vfb) More... | |
function<ScalarFunc> anonymous_namespace{named_func.cpp}::ApplyOp | ( | const function< ScalarFunc > & | f, |
const Operator & | op | ||
) |
Get a functor applying unary operator op to f.
[in] | f | Function which takes a Baby and returns a single value |
[in] | op | Unary operator to apply to f |
Definition at line 70 of file named_func.cpp.
function<VectorFunc> anonymous_namespace{named_func.cpp}::ApplyOp | ( | const function< VectorFunc > & | f, |
const Operator & | op | ||
) |
Get a functor applying unary operator op to f.
[in] | f | Function which takes a Baby and returns a vector of values |
[in] | op | Unary operator to apply to f |
Definition at line 89 of file named_func.cpp.
pair<function<ScalarFunc>, function<VectorFunc> > anonymous_namespace{named_func.cpp}::ApplyOp | ( | const function< ScalarFunc > & | sfa, |
const function< VectorFunc > & | vfa, | ||
const function< ScalarFunc > & | sfb, | ||
const function< VectorFunc > & | vfb, | ||
const Operator & | op | ||
) |
Get a functor applying binary operator op to operands (sfa or vfa) and (sfb or vfb)
sfa and vfa are associated to the same NamedFunc, and sfb and vfb are associated to the same NamedFunc. Exactly one from each pair should be a valid function. Determines the valid function from each pair and applies binary operator op between the "a" function result on the left and the "b" function result on the right.
[in] | sfa | Scalar function from the same NamedFunc as vfa |
[in] | vfa | Vector function from the same NamedFunc as sfa |
[in] | sfb | Scalar function from the same NamedFunc as vfb |
[in] | vfb | Vector function from the same NamedFunc as sfb |
[in] | op | Unary operator to apply to (sfa or vfa) and (sfb or vfb) |
Definition at line 125 of file named_func.cpp.
pair<function<ScalarFunc>, function<VectorFunc> > anonymous_namespace{named_func.cpp}::ApplyOp | ( | const function< ScalarFunc > & | sfa, |
const function< VectorFunc > & | vfa, | ||
const function< ScalarFunc > & | sfb, | ||
const function< VectorFunc > & | vfb, | ||
const logical_and< ScalarType > & | |||
) |
Get a functor applying binary "&&" to operands (sfa or vfa) and (sfb or vfb)
Replaces generic template with short-circuiting "and" logic.
[in] | sfa | Scalar function from the same NamedFunc as vfa |
[in] | vfa | Vector function from the same NamedFunc as sfa |
[in] | sfb | Scalar function from the same NamedFunc as vfb |
[in] | vfb | Vector function from the same NamedFunc as sfb |
Definition at line 188 of file named_func.cpp.
pair<function<ScalarFunc>, function<VectorFunc> > anonymous_namespace{named_func.cpp}::ApplyOp | ( | const function< ScalarFunc > & | sfa, |
const function< VectorFunc > & | vfa, | ||
const function< ScalarFunc > & | sfb, | ||
const function< VectorFunc > & | vfb, | ||
const logical_or< ScalarType > & | |||
) |
Get a functor applying binary "||" to operands (sfa or vfa) and (sfb or vfb)
Replaces generic template with short-circuiting "or" logic.
[in] | sfa | Scalar function from the same NamedFunc as vfa |
[in] | vfa | Vector function from the same NamedFunc as sfa |
[in] | sfb | Scalar function from the same NamedFunc as vfb |
[in] | vfb | Vector function from the same NamedFunc as sfb |
Definition at line 254 of file named_func.cpp.
Referenced by operator!(), operator!=(), NamedFunc::operator%=(), operator&&(), NamedFunc::operator*=(), NamedFunc::operator+=(), operator-(), NamedFunc::operator-=(), NamedFunc::operator/=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and operator||().