1 #ifndef _MORTONCOMPARE_H_
2 #define _MORTONCOMPARE_H_
11 : nrowbits(nrbits), ncolbits(ncbits), rowmask(rmask), colmask(cmask) {}
15 bool operator()(
const ITYPE & lhs,
const ITYPE & rhs)
const
17 ITYPE rlowbits = ((lhs >> ncolbits) & rowmask);
18 ITYPE clowbits = (lhs & colmask);
31 template <
class ITYPE>
32 class MortCompSym:
public binary_function< ITYPE , ITYPE , bool >
36 MortCompSym(ITYPE bits, ITYPE lowmask): nbits(bits), lmask(lowmask) {}
40 bool operator()(
const ITYPE & lhs,
const ITYPE & rhs)
const
42 ITYPE rlowbits = ((lhs >> nbits) & lmask);
43 ITYPE clowbits = (lhs & lmask);
bool operator()(const ITYPE &lhs, const ITYPE &rhs) const
MortonCompare(ITYPE nrbits, ITYPE ncbits, ITYPE rmask, ITYPE cmask)
MortCompSym(ITYPE bits, ITYPE lowmask)
ITYPE BitInterleaveLow(ITYPE x, ITYPE y)
bool operator()(const ITYPE &lhs, const ITYPE &rhs) const