casa
5.7.0-16
|
#include <Sort.h>
Public Member Functions | |
SortKey (const void *data, const CountedPtr< BaseCompare > &, uInt increment, int order) | |
Define a sort key in a given data array using the indicated comparison object, stride and sort order. More... | |
SortKey (const SortKey &) | |
Copy constructor (copy semantics). More... | |
~SortKey () | |
SortKey & | operator= (const SortKey &) |
Assignment (copy semantics). More... | |
uInt | tryGenSort (Vector< uInt > &indexVector, uInt nrrec, int opt) const |
Try if GenSort can be used for this single key. More... | |
int | order () const |
Get the sort order. More... | |
Protected Attributes | |
int | order_p |
sort order; -1 = ascending, 1 = descending More... | |
const void * | data_p |
address of first data point More... | |
uInt | incr_p |
increment for next data point More... | |
CountedPtr< BaseCompare > | ccmpObj_p |
comparison object; use CountedPtr for memory management More... | |
BaseCompare * | cmpObj_p |
comparison object; use raw pointer for performance More... | |
Friends | |
class | Sort |
Define a Sort key.
Internal
SortKey is a helper class for the Sort class. It holds the following information about a sort key:
casacore::SortKey::SortKey | ( | const void * | data, |
const CountedPtr< BaseCompare > & | , | ||
uInt | increment, | ||
int | order | ||
) |
Define a sort key in a given data array using the indicated comparison object, stride and sort order.
casacore::SortKey::SortKey | ( | const SortKey & | ) |
Copy constructor (copy semantics).
casacore::SortKey::~SortKey | ( | ) |
|
inline |
Try if GenSort can be used for this single key.
If it succeeds, it returns the resulting number of elements. Otherwise it returns 0.
|
protected |
comparison object; use CountedPtr for memory management
|
protected |
|
protected |
|
protected |
|
protected |