Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

template<class DstArrayT, class Src1ArrayT, class Src2ArrayT>
void Impala::Core::Array::Trait::TalkBpoPtrEn< DstArrayT, Src1ArrayT, Src2ArrayT >::DoIt ( DstStorType dPtr,
Src1StorType s1Ptr,
Src2StorType s2Ptr 
) [inline]

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:


Generated on Fri Mar 19 11:05:09 2010 for ImpalaSrc by  doxygen 1.5.1