![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
OptNumber is an option containing a double precision floating point number.
#include <options.h>
Public Types | |
typedef double | ValueType |
Public Member Functions | |
virtual const std::type_info & | getDataID () |
Returns the identifier of the option type. | |
OptTypes | getType () const |
Returns the option type. | |
const double & | getValue () const |
Returns the option value. | |
double & | getValue () |
Returns the option value. | |
virtual bool | isA (OptTypes id) const |
Checks if the option has the given type. | |
virtual std::ostream & | operator<< (std::ostream &os) const |
Writes the option to a stream. | |
OptNumber & | operator= (const OptNumber &other) |
Copies the option values from an existing OptNumber. | |
OptNumber & | operator= (double other) |
Copies the option value from a double. | |
OptNumber () | |
Empty constructor. | |
OptNumber (double v) | |
Constructor from a double. | |
void | setValue (double newvalue) |
Sets the option value to the given one. | |
Static Public Member Functions | |
static OptNumber * | dynacast (GurlsOption *opt) |
Tries to cast a pointer to a generic option to a pointer to an OptNumber. | |
static const OptNumber * | dynacast (const GurlsOption *opt) |
Tries to cast a pointer to a generic option to a pointer to an OptNumber. | |
Protected Attributes | |
OptTypes | type |
Option type. | |
double | value |
Option value. | |
Friends | |
GURLS_EXPORT std::ostream & | operator<< (std::ostream &os, const GurlsOption &opt) |
Writes an option to a stream. |