![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
OptProcess is an option containing a sequence of actions that form a Gurls process.
#include <options.h>
Public Types | |
enum | Action { ignore, compute, computeNsave, load, remove } |
Execution options for a GURLS task. | |
typedef std::vector< Action > | ValueType |
Public Member Functions | |
void | addAction (const Action action) |
Adds a new action into the process. | |
void | clear () |
Removes all actions. | |
virtual const std::type_info & | getDataID () |
Returns the identifier of the option type. | |
OptTypes | getType () const |
Returns the option type. | |
const ValueType & | getValue () const |
Returns the option's value. | |
virtual bool | isA (OptTypes id) const |
Checks if the option has the given type. | |
OptProcess & | operator<< (const Action action) |
Adds a new action into the process. | |
virtual std::ostream & | operator<< (std::ostream &os) const |
Writes the option to a stream. | |
Action | operator[] (unsigned long index) |
Gets the element at a given position in the sequence. | |
OptProcess () | |
Empty constructor. | |
OptProcess (const OptProcess &other) | |
Constructor from an existing OptProcess. | |
unsigned long | size () |
Returns the number of actions into the process. | |
~OptProcess () | |
Destructor. | |
Static Public Member Functions | |
static OptProcess * | dynacast (GurlsOption *opt) |
Tries to cast a pointer to a generic option to a pointer to an OptProcess. | |
static const OptProcess * | dynacast (const GurlsOption *opt) |
Tries to cast a pointer to a generic option to a pointer to an OptProcess. | |
Static Protected Member Functions | |
static std::vector< std::string > & | actionNames () |
Used to map enum values to their names. | |
Protected Attributes | |
OptTypes | type |
Option type. | |
ValueType * | value |
Option value. | |
Friends | |
GURLS_EXPORT std::ostream & | operator<< (std::ostream &os, const GurlsOption &opt) |
Writes an option to a stream. |