38 {
return !(*
this == oth); }
39 inline bool operator <(
const IdxPair& oth)
const;
40 inline bool operator >(
const IdxPair& oth)
const;
61 inline static IdxPair fromInt64(
od_int64);
62 od_int64 sqDistTo(
const IdxPair&)
const;
63 bool isNeighborTo(
const IdxPair&,
64 const IdxPairStep&,
bool conn8=
true)
const;
66 static const IdxPair& udf();
73 return first == oth.first && second == oth.second;
79 return first < oth.first || (first == oth.first && second < oth.second );
85 return first > oth.first || (first == oth.first && second > oth.second );
IdxType & row()
Definition: posidxpair.h:45
#define mExpClass(module)
Definition: commondefs.h:160
IdxPair()
Definition: posidxpair.h:33
bool operator<(const IdxPair &oth) const
Definition: posidxpair.h:77
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
bool operator>(const IdxPair &oth) const
Definition: posidxpair.h:83
#define od_int64
Definition: plftypes.h:36
IdxType & inl()
Definition: posidxpair.h:43
IdxPair with position indices; base class for BinID et al.
Definition: posidxpair.h:29
IdxType crl() const
Definition: posidxpair.h:54
int64_t toInt64(const char *s, int64_t defval=0)
Definition: string2.h:76
IdxType col() const
Definition: posidxpair.h:58
::Index_Type_Pair Index_Type_Pair
Definition: posidxpair.h:22
IdxType & trcNr()
Definition: posidxpair.h:49
int64_t toInt64() const
Definition: posidxpair.h:89
bool operator==(const IdxPair &) const
Definition: posidxpair.h:71
IdxType row() const
Definition: posidxpair.h:57
IdxType inl() const
Definition: posidxpair.h:53
static IdxPair fromInt64(int64_t)
Definition: posidxpair.h:95
IdxPair(IdxType f, IdxType s)
Definition: posidxpair.h:34
Position.
Definition: commontypes.h:42
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
IdxType trcNr() const
Definition: posidxpair.h:56
#define od_uint64
Definition: plftypes.h:37
IdxPair IdxPairStep
Definition: posidxpair.h:24
IdxType & crl()
Definition: posidxpair.h:48
IdxType & col()
Definition: posidxpair.h:50
std::pair< Index_Type, Index_Type > Index_Type_Pair
Definition: idxpair.h:23
IdxType & lineNr()
Definition: posidxpair.h:44
Index_Type IdxType
Definition: idxpair.h:34
IdxType lineNr() const
Definition: posidxpair.h:55
IdxPair IdxPairDelta
Definition: posidxpair.h:23