Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
Sketch.cc File Reference#include "Sketch.h"
Include dependency graph for Sketch.cc:
Go to the source code of this file.
Define Documentation
Value:
Sketch<uchar> operator _Op (const Sketch<bool>& lhs, const int value) { \ Sketch<uchar> result(lhs->getName() + #_Op + "scalar", lhs); \ uchar* dest = &(*result.pixels)[0]; \ const bool* src1 = &(*lhs.pixels)[0]; \ const bool* end1 = &(*lhs.pixels)[lhs->getNumPixels()]; \ while ( src1 != end1 ) \ *dest++ = *src1++ _Op (uchar)value; \ return result; \ } Referenced by DualCoding::DEF_MATHOPS_CC().
Value:
Sketch<_Result> operator _Op (const Sketch<_T1> &lhs, const Sketch<_T2> &rhs) { \ Sketch<_Result> result(lhs->getName() + #_Op + rhs->getName(), lhs); \ _Result* dest = &(*result.pixels)[0]; \ const _T1* src1 = &(*lhs.pixels)[0]; \ const _T1* end1 = &(*lhs.pixels)[lhs->getNumPixels()]; \ const _T2* src2 = &(*rhs.pixels)[0]; \ while ( src1 != end1 ) \ *dest++ = *src1++ _Op *src2++; \ return result; \ } \ /* continued... */ \ Sketch<_Result> operator _Op (const Sketch<_T1> &lhs, const _T2 value) { \ Sketch<_Result> result(lhs->getName() + #_Op + "scalar", lhs); \ _Result* dest = &(*result.pixels)[0]; \ const _T1* src1 = &(*lhs.pixels)[0]; \ const _T1* end1 = &(*lhs.pixels)[lhs->getNumPixels()]; \ while ( src1 != end1 ) \ *dest++ = *src1++ _Op (_Result)value; \ return result; \ }
Value:
Sketch<_T1> operator _Op (const Sketch<_T1>& lhs, const int value) { \ Sketch<_T1> result(lhs->getName() + #_Op + "scalar", lhs); \ *result.pixels = *lhs.pixels _Op (_T1)(value); \ return result; \ }
Value:
DEF_MATHOP_CC( +, _T1, _T2, _Result ) \ DEF_MATHOP_CC( -, _T1, _T2, _Result ) \ DEF_MATHOP_CC( *, _T1, _T2, _Result ) \ DEF_MATHOP_CC( /, _T1, _T2, _Result )
Value:
DEF_MATHOP_INT_CC( +, _T1) \ DEF_MATHOP_INT_CC( -, _T1) \ DEF_MATHOP_INT_CC( *, _T1) \ DEF_MATHOP_INT_CC( /, _T1) Referenced by DualCoding::DEF_MATHOPS_CC(). |
DualCoding 5.1CVS |
Generated Mon May 9 04:56:29 2016 by Doxygen 1.6.3 |