|
| DoubleVariable (const std::string varname) |
| Constructor.
|
| ~DoubleVariable () |
| Destructor.
|
PyObject * | getPythonObject (int i0=0, int n=0) |
| Get a PyFloatObject interpretation of the variable.
|
bool | setFromPythonObject (PyObject *obj, int i0=0, int n=0) |
| Set the variable from a Python object.
|
| ScalarNumberVariable (const std::string varname, const std::string vartype) |
| Constructor.
|
| ~ScalarNumberVariable () |
| Destructor.
|
virtual const std::string | asString (bool synced=true) |
| Get the variable text representation.
|
| ScalarVariable (const std::string varname, const std::string vartype) |
| Constructor.
|
| ~ScalarVariable () |
| Destructor.
|
bool | isArray () |
| Report that the varaible is not an array.
|
size_t | typesize () const |
| Get the variable type size.
|
void * | get (bool synced=true) |
| Get variable pointer basis pointer.
|
void | set (void *ptr, bool synced=true) |
| Set variable from memory.
|
dcl | value (bool synced=true) |
| Get the variable value.
|
| Variable (const std::string varname, const std::string vartype) |
| Constructor.
|
virtual | ~Variable () |
| Destructor.
|
bool | isScalar () |
| Let efficiently know whether the variable is a scalar or not.
|
std::string | name () const |
| Name of the variable.
|
virtual std::string | type () const |
| Type of the variable.
|
virtual size_t | size () const |
| Get the variable type size.
|
virtual void * | get (bool UNUSED_PARAM synced=true) |
| Get variable pointer basis pointer.
|
void * | get_async () |
| Get variable pointer basis pointer.
|
void | set_async (void *ptr) |
| Set variable from memory.
|
virtual PyObject * | getPythonObject (int UNUSED_PARAM i0=0, int UNUSED_PARAM n=0) |
| Get a Python interpretation of the variable.
|
virtual bool | setFromPythonObject (PyObject UNUSED_PARAM *obj, int UNUSED_PARAM i0=0, int UNUSED_PARAM n=0) |
| Set the variable from a Python object.
|
virtual const std::string | asString (bool UNUSED_PARAM synced=true) |
| Get the variable text representation.
|
void | setEvent (cl_event event) |
| Set the variable current writing event.
|
void | setWritingEvent (cl_event event) |
| Alias of InputOutput::Variable::setEvent()
|
cl_event | getEvent () const |
| Returns the last writing event associated to this variable.
|
cl_event | getWritingEvent () const |
| Alias of InputOutput::Variable::getEvent()
|
void | addReadingEvent (cl_event event) |
| Add a new reading event to the variable.
|
std::vector< cl_event > | getReadingEvents () const |
| Get the list of reading events.
|
void | sync (bool readonly=false) |
| Wait for variable reading and writing events to be completed.
|