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

OptNumberList is an option containing a list of double precision floating point numbers.

#include <options.h>

Inheritance diagram for gurls::OptNumberList:
Collaboration diagram for gurls::OptNumberList:

List of all members.

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.
OptNumberListoperator<< (double &d)
 Adds a string to the list.
OptNumberListoperator= (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 OptNumberListdynacast (GurlsOption *opt)
 Tries to cast a pointer to a generic option to a pointer to an OptNumberList.
static const OptNumberListdynacast (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.

Detailed Description

Definition at line 399 of file options.h.


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