fastjet 2.4.5
|
class that will take care of ordering of shuffles for us More...
Public Member Functions | |
bool | operator< (const Shuffle &) const |
compares this shuffle with the other one | |
void | operator+= (unsigned int shift) |
Public Attributes | |
unsigned int | x |
unsigned int | y |
Point * | point |
class that will take care of ordering of shuffles for us
Definition at line 119 of file ClosestPair2D.hh.
void fastjet::ClosestPair2D::Shuffle::operator+= | ( | unsigned int | shift | ) | [inline] |
Definition at line 124 of file ClosestPair2D.hh.
References fastjet::d0::inline_maths::y().
bool fastjet::ClosestPair2D::Shuffle::operator< | ( | const Shuffle & | q | ) | const |
compares this shuffle with the other one
Definition at line 65 of file ClosestPair2D.cc.
References fastjet::floor_ln2_less(), x, y, and fastjet::d0::inline_maths::y().
{ if (floor_ln2_less(x ^ q.x, y ^ q.y)) { // i = 2 in Chan's algorithm return (y < q.y); } else { // i = 1 in Chan's algorithm return (x < q.x); } }
Definition at line 122 of file ClosestPair2D.hh.
Referenced by fastjet::ClosestPair2D::_point2shuffle().
unsigned int fastjet::ClosestPair2D::Shuffle::x |
Definition at line 121 of file ClosestPair2D.hh.
Referenced by fastjet::ClosestPair2D::_point2shuffle(), and operator<().
unsigned int fastjet::ClosestPair2D::Shuffle::y |
Definition at line 121 of file ClosestPair2D.hh.
Referenced by fastjet::ClosestPair2D::_point2shuffle(), and operator<().