Class for sorting a list of indexes to an array of spots lexicographically according to the 2D positions of the spots. More...
Public Member Functions | |
IndexLexicographicPosition (const vector< Vector< 4 > > &s) | |
bool | operator() (int a, int b) |
Public Attributes | |
const vector< Vector< 4 > > & | spots |
Static Public Attributes | |
static const int | Second = First==2?3:2 |
Class for sorting a list of indexes to an array of spots lexicographically according to the 2D positions of the spots.
Cmp | comparator function to specify less or greater | |
First | most significant position index |
Definition at line 451 of file multispot5.cc.
IndexLexicographicPosition< Cmp, First >::IndexLexicographicPosition | ( | const vector< Vector< 4 > > & | s | ) | [inline] |
s | Vector to sort indices of |
Definition at line 455 of file multispot5.cc.
00456 :spots(s) 00457 {}
bool IndexLexicographicPosition< Cmp, First >::operator() | ( | int | a, | |
int | b | |||
) | [inline] |
Compare two indexes into the array of spots.
Definition at line 463 of file multispot5.cc.
References IndexLexicographicPosition< Cmp, First >::Second, and IndexLexicographicPosition< Cmp, First >::spots.
const vector<Vector<4> >& IndexLexicographicPosition< Cmp, First >::spots |
Keep around the array of spots for later comprison.
Definition at line 452 of file multispot5.cc.
Referenced by IndexLexicographicPosition< Cmp, First >::operator()().
const int IndexLexicographicPosition< Cmp, First >::Second = First==2?3:2 [static] |
Second most siginifcant position index for sorting.
Definition at line 460 of file multispot5.cc.
Referenced by IndexLexicographicPosition< Cmp, First >::operator()().