latest version v1.9 - last update 10 Apr 2010 |
The parameters for the class quickPartialSort. More...
#include <ltiQuickPartialSort.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual functor::parameters * | clone () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
int | pivotIndex |
The parameters for the class quickPartialSort.
lti::quickPartialSort< T >::parameters::parameters | ( | void | ) | [inline] |
Default constructor.
Reimplemented from lti::functor::parameters.
References lti::quickPartialSort< T >::parameters::pivotIndex.
Referenced by lti::quickPartialSort< T >::parameters::clone().
lti::quickPartialSort< T >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
Copy constructor.
other | the parameters object to be copied |
References lti::quickPartialSort< T >::parameters::copy().
lti::quickPartialSort< T >::parameters::~parameters | ( | ) | [inline, virtual] |
Destructor.
Reimplemented from lti::functor::parameters.
virtual functor::parameters* lti::quickPartialSort< T >::parameters::clone | ( | ) | const [inline, virtual] |
Returns a pointer to a clone of the parameters.
Implements lti::functor::parameters.
References lti::quickPartialSort< T >::parameters::parameters().
parameters& lti::quickPartialSort< T >::parameters::copy | ( | const parameters & | other | ) | [inline] |
Copy the contents of a parameters object.
other | the parameters object to be copied |
References lti::functor::parameters::copy(), and lti::quickPartialSort< T >::parameters::pivotIndex.
Referenced by lti::quickPartialSort< T >::parameters::operator=(), and lti::quickPartialSort< T >::parameters::parameters().
const char* lti::quickPartialSort< T >::parameters::getTypeName | ( | void | ) | const [inline, virtual] |
Returns name of this type.
Reimplemented from lti::functor::parameters.
parameters& lti::quickPartialSort< T >::parameters::operator= | ( | const parameters & | other | ) | [inline] |
Copy the contents of a parameters object.
other | the parameters object to be copied |
References lti::quickPartialSort< T >::parameters::copy().
virtual bool lti::quickPartialSort< T >::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, 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 written, otherwise only the data block will be written. |
Reimplemented from lti::functor::parameters.
References lti::quickPartialSort< T >::parameters::pivotIndex, lti::ioHandler::readBegin(), and lti::ioHandler::readEnd().
virtual bool lti::quickPartialSort< T >::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, 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 lti::functor::parameters.
References lti::quickPartialSort< T >::parameters::pivotIndex, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().
int lti::quickPartialSort< T >::parameters::pivotIndex |
Specifies the position in the vectors that will have its own place, if the whole vector where sorted.
This means, all first "pivotIndex" elements in the output vectors will be smaller or equal the rest of the elements.
Default value: 2
Referenced by lti::quickPartialSort< T >::parameters::copy(), lti::quickPartialSort< T >::parameters::parameters(), lti::quickPartialSort< T >::parameters::read(), and lti::quickPartialSort< T >::parameters::write().