Helper class to define a comparison function for positions. More...
#include <lhaData.h>
Static Public Member Functions | |
| static bool | compare (std::vector< size_t > const &pos1, std::vector< size_t > const &pos2) |
| Compares two vectors of positions. More... | |
| static bool | compare (LHAElement const &A, LHAElement const &B) |
| Compares two LHAElement. More... | |
Helper class to define a comparison function for positions.
|
inlinestatic |
Compares two vectors of positions.
If pos1 and pos2 have different sizes, this function returns
Otherwise, the alphabetical order is used. This allows to sort matrix elements row by row, column by column (00 - 01 - 10 - 11 for example).
| pos1 | First position. |
| pos2 | Second position. |
|
inlinestatic |
Compares two LHAElement.
First compares the id. Returns the simpler if they are different and compares the positions else.
| A | First LHAElement. |
| B | Second LHAElement. |
1.8.13