28 inline RowCol(
int r,
int c);
45 inline const char*
toString(
bool onlycol=
false)
const;
90 return RowCol( p.first, p.second );
110 {
return RowCol(
row()/denominator,
col()/denominator ); }
118 {
row() *= factor;
col() *= factor;
return *
this; }
122 {
return (((
unsigned int)
row())<<16)+ ((
unsigned int)
col() & 0xFFFF);}
124 {
return RowCol ( ll>>16, ((
short)(ll&0xFFFF)) ); }
IdxType & row()
Definition: posidxpair.h:43
const RowCol & operator-=(const RowCol &)
Definition: rowcol.h:113
#define mExpClass(module)
Definition: commondefs.h:157
int operator-(const DateInfo &di1, const DateInfo &di2)
Definition: dateinfo.h:127
const char * getUsrStr(const char *prefx, const char *sep, const char *postfx, bool only2nd) const
float counterClockwiseAngleTo(const RowCol &) const
bool fromString(const char *)
Definition: rowcol.h:134
const RowCol & operator*=(const RowCol &)
Definition: rowcol.h:115
#define od_int64
Definition: plftypes.h:34
const RowCol & operator+=(const RowCol &)
Definition: rowcol.h:111
const char * toString(bool onlycol=false) const
Definition: rowcol.h:128
float angleTo(const RowCol &) const
IdxPair with position indices; base class for BinID et al.
Definition: posidxpair.h:27
const RowCol & operator/=(const RowCol &)
Definition: rowcol.h:119
RowCol operator/(const RowCol &) const
Definition: rowcol.h:107
RowCol operator-() const
Definition: rowcol.h:101
RowCol()
Definition: rowcol.h:27
static const TypeSet< RowCol > & clockWiseSequence()
static IdxPair fromInt64(int64_t)
Definition: posidxpair.h:93
Position.
Definition: commontypes.h:38
RowCol RowColDelta
Definition: rowcol.h:15
BufferString toString(const DBKey &ky)
Definition: dbkey.h:115
RowCol operator+() const
Definition: rowcol.h:99
IdxPair used for its row() and col().
Definition: rowcol.h:23
IdxType & col()
Definition: posidxpair.h:48
int toInt32() const
Definition: rowcol.h:121
Index_Type IdxType
Definition: idxpair.h:32
static RowCol fromInt32(int)
Definition: rowcol.h:123
RowCol getDirection() const
Point2D< T > operator*(int f, const Point2D< T > &b)
Definition: geometry.h:86
static RowCol fromInt64(int64_t)
Definition: rowcol.h:87
A pair of numbers; base class for BinID et al.
Definition: idxpair.h:28
RowCol operator*(const RowCol &) const
Definition: rowcol.h:103
bool parseUsrStr(const char *str, const char *prefx, const char *sep, const char *postfx)
float clockwiseAngleTo(const RowCol &rc) const