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

OptProcess is an option containing a sequence of actions that form a Gurls process.

#include <options.h>

Inheritance diagram for gurls::OptProcess:
Collaboration diagram for gurls::OptProcess:

List of all members.

Public Types

enum  Action {
  ignore, compute, computeNsave, load,
  remove
}
 Execution options for a GURLS task.
typedef std::vector< ActionValueType

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.
OptProcessoperator<< (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 OptProcessdynacast (GurlsOption *opt)
 Tries to cast a pointer to a generic option to a pointer to an OptProcess.
static const OptProcessdynacast (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.

Detailed Description

Definition at line 582 of file options.h.


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