last update 20 Sep 2009 |
#include <cvrSort.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
parameters & | copy (const parameters &other) |
const std::string & | name () const |
virtual parameters * | clone () const |
virtual parameters * | newInstance () const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
Public Attributes | |
int | thresholdForBubble |
eSortingOrder | sortingOrder |
cvr::sort::sort::parameters::parameters | ( | ) |
cvr::sort::sort::parameters::parameters | ( | const parameters & | other | ) |
Copy constructor.
other | the parameters object to be copied |
Reimplemented from cvr::functor::functor::parameters.
cvr::sort::sort::parameters::~parameters | ( | ) | [virtual] |
virtual parameters* cvr::sort::sort::parameters::clone | ( | ) | const [virtual] |
parameters& cvr::sort::sort::parameters::copy | ( | const parameters & | other | ) |
Copy the contents of a parameters object.
other | the parameters object to be copied |
const std::string& cvr::sort::sort::parameters::name | ( | ) | const [virtual] |
virtual parameters* cvr::sort::sort::parameters::newInstance | ( | ) | const [virtual] |
Returns a pointer to a new instance of the parameters.
Implements cvr::functor::functor::parameters.
virtual bool cvr::sort::sort::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
Read the parameters from the given ioHandler.
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also read, otherwise only the data block will be read. |
Reimplemented from cvr::parametersManager::parametersManager::parameters.
virtual bool cvr::sort::sort::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [virtual] |
Write the parameters in the given ioHandler.
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from cvr::parametersManager::parametersManager::parameters.
eSortingOrder cvr::sort::sort::parameters::sortingOrder |
Order of the sorting.
Default: Ascending
int cvr::sort::sort::parameters::thresholdForBubble |
For vector/matrices with size smaller than this value, a bubble sort will be used (this way is faster)!
The default value is usually 10, but if you configured your system for performance this value could change.
The best value can be found in the cvrPerformanceConfig.h file, under _CVR_PERFORMANCE_SORT_STOP_QUICKSORT.
Default value: 10 or better.