fastjet::ClosestPair2D::Shuffle Class Reference

class that will take care of ordering of shuffles for us More...

Collaboration diagram for fastjet::ClosestPair2D::Shuffle:

Collaboration graph
fastjet::ClosestPair2D::Pointfastjet::Coord2Dfastjet::ClosestPair2D::triplet\< circulator \>fastjet::SearchTree\< T \>::circulatorfastjet::SearchTree\< T \>::Nodefastjet::ClosestPair2D::triplet\< T \>
[legend]
List of all members.

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
Pointpoint

Detailed Description

class that will take care of ordering of shuffles for us

Definition at line 119 of file ClosestPair2D.hh.


Member Function Documentation

bool fastjet::ClosestPair2D::Shuffle::operator< ( const Shuffle  )  const

compares this shuffle with the other one

Definition at line 64 of file ClosestPair2D.cc.

References fastjet::floor_ln2_less(), x, and y.

00064                                                             {
00065 
00066   if (floor_ln2_less(x ^ q.x, y ^ q.y)) {
00067     // i = 2 in Chan's algorithm
00068     return (y < q.y);
00069   } else {
00070     // i = 1 in Chan's algorithm
00071     return (x < q.x);
00072   }
00073 }

void fastjet::ClosestPair2D::Shuffle::operator+= ( unsigned int  shift  )  [inline]

Definition at line 124 of file ClosestPair2D.hh.

00124 {x += shift; y+= shift;};


Member Data Documentation

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<().

Point* fastjet::ClosestPair2D::Shuffle::point

Definition at line 122 of file ClosestPair2D.hh.

Referenced by fastjet::ClosestPair2D::_point2shuffle().


The documentation for this class was generated from the following files:
Generated on Tue Dec 18 17:05:53 2007 for fastjet by  doxygen 1.5.2