![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
OptNumberList is an option containing a list of double precision floating point numbers.
#include <options.h>


Public Types | |
| typedef std::vector< double > | ValueType |
Public Member Functions | |
| void | add (const double d) |
| Adds a double to the list. | |
| void | clear () |
| Removes all contents in the list. | |
| virtual const std::type_info & | getDataID () |
| Returns the identifier of the option type. | |
| OptTypes | getType () const |
| Returns the option type. | |
| std::vector< double > & | getValue () |
| Returns the vector of double inside the option. | |
| const std::vector< double > & | getValue () const |
| Returns the vector of double inside the option. | |
| 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. | |
| OptNumberList & | operator<< (double &d) |
| Adds a string to the list. | |
| OptNumberList & | operator= (const OptNumberList &other) |
| Copies the option values from an existing OptNumberList. | |
| OptNumberList () | |
| Empty constructor. | |
| OptNumberList (const std::vector< double > &vec) | |
| Constructor from a vector of double. | |
| OptNumberList (double v) | |
| Constructor from a double, builds a 1-size vector of double. | |
| OptNumberList (double *v, int n) | |
| Constructor from a double buffer of size n. | |
| void | setValue (const std::vector< double > newvalue) |
| Copies the option values from a vector of double. | |
Static Public Member Functions | |
| static OptNumberList * | dynacast (GurlsOption *opt) |
| Tries to cast a pointer to a generic option to a pointer to an OptNumberList. | |
| static const OptNumberList * | dynacast (const GurlsOption *opt) |
| Tries to cast a pointer to a generic option to a pointer to an OptNumberList. | |
Protected Attributes | |
| OptTypes | type |
| Option type. | |
Private Attributes | |
| std::vector< double > * | value |
| Option value. | |
Friends | |
| GURLS_EXPORT std::ostream & | operator<< (std::ostream &os, const GurlsOption &opt) |
| Writes an option to a stream. | |