template<class DstArrayT, class Src1ArrayT, class Src2ArrayT>
Actual operation (besides talking) : x * y (or x + y).
Definition at line 90 of file TalkBpo.h. References Impala::Core::Array::Element::E1Cast(), Impala::Core::Array::Trait::TalkBpoPtrEn< DstArrayT, Src1ArrayT, Src2ArrayT >::mDoAdd, Impala::Core::Array::Trait::TalkBpoPtrEn< DstArrayT, Src1ArrayT, Src2ArrayT >::mVerbose, Impala::Core::Array::Pattern::PtrRead(), and Impala::Core::Array::Pattern::PtrWrite(). 00091 { 00092 Src1ArithType x = Pattern::PtrRead(s1Ptr, Src1ArithType()); 00093 Src2ArithType y = Pattern::PtrRead(s2Ptr, Src2ArithType()); 00094 DstArithType res; 00095 res = Element::E1Cast((mDoAdd) ? x+y : x*y, DstArithType()); 00096 if (mVerbose) 00097 { 00098 std::cout << " TalkBpo::doIt(" << x << "," << y 00099 << ") = " << res << std::endl; 00100 } 00101 Pattern::PtrWrite(dPtr, res); 00102 }
Here is the call graph for this function:
|