GURLS++  2.0.00
C++ Implementation of GURLS Matlab Toolbox
gurls::OptNumber Class Reference

OptNumber is an option containing a double precision floating point number.

#include <options.h>

Inheritance diagram for gurls::OptNumber:
Collaboration diagram for gurls::OptNumber:

List of all members.

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.
OptNumberoperator= (const OptNumber &other)
 Copies the option values from an existing OptNumber.
OptNumberoperator= (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 OptNumberdynacast (GurlsOption *opt)
 Tries to cast a pointer to a generic option to a pointer to an OptNumber.
static const OptNumberdynacast (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.

Detailed Description

Definition at line 324 of file options.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends