AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Public Member Functions
Aqua::InputOutput::UIVec4Variable Class Reference

A uivec4 variable. More...

#include <Variable.h>

Inheritance diagram for Aqua::InputOutput::UIVec4Variable:
Inheritance graph
[legend]
Collaboration diagram for Aqua::InputOutput::UIVec4Variable:
Collaboration graph
[legend]

Public Member Functions

 UIVec4Variable (const std::string varname)
 
 ~UIVec4Variable ()
 
PyObject * getPythonObject (int i0=0, int n=0)
 
bool setFromPythonObject (PyObject *obj, int i0=0, int n=0)
 
- Public Member Functions inherited from Aqua::InputOutput::ScalarVecVariable< uivec4 >
 ScalarVecVariable (const std::string varname, const std::string vartype, const unsigned int dims)
 Constructor.
 
 ~ScalarVecVariable ()
 Destructor.
 
virtual const std::string asString ()
 Get the variable text representation.
 
- Public Member Functions inherited from Aqua::InputOutput::ScalarVariable< T >
 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 ()
 Get variable pointer basis pointer.
 
void * get_async ()
 Get variable pointer basis pointer.
 
void set (void *ptr)
 Set variable from memory.
 
void set_async (void *ptr)
 Set variable from memory.
 
virtual const std::string asString ()=0
 Get the variable text representation.
 
- Public Member Functions inherited from Aqua::InputOutput::Variable
 Variable (const std::string varname, const std::string vartype)
 Constructor.
 
virtual ~Variable ()
 Destructor.
 
virtual bool isArray ()=0
 Let efficiently know whether the variable is an array or not.
 
virtual 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 typesize () const
 Get the variable type size.
 
virtual size_t size () const
 Get the variable type size.
 
virtual void * get ()
 Get variable pointer basis pointer.
 
virtual void set (void *ptr)=0
 Set variable from memory.
 
virtual PyObject * getPythonObject (int i0=0, int n=0)
 Get a Python interpretation of the variable.
 
virtual bool setFromPythonObject (PyObject *obj, int i0=0, int n=0)
 Set the variable from a Python object.
 
virtual const std::string asString ()
 Get the variable text representation.
 
void setEvent (cl_event event)
 Set the variable current event.
 
cl_event getEvent ()
 Returns the last event associated to this variable.
 

Additional Inherited Members

- Protected Member Functions inherited from Aqua::InputOutput::ScalarVecVariable< uivec4 >
bool checkPyhonObjectDims (PyObject *obj)
 Check that a Python object is compatible with the variable type.
 
- Protected Member Functions inherited from Aqua::InputOutput::Variable
void sync ()
 Wait for variable underlying event to be complete.
 
- Protected Attributes inherited from Aqua::InputOutput::ScalarVariable< T >
_value
 Variable value.
 

Detailed Description

A uivec4 variable.

Constructor & Destructor Documentation

◆ UIVec4Variable()

Aqua::InputOutput::UIVec4Variable::UIVec4Variable ( const std::string  varname)

Constructor.

Parameters
varnameName of the variable.

◆ ~UIVec4Variable()

Aqua::InputOutput::UIVec4Variable::~UIVec4Variable ( )
inline

Destructor.

Member Function Documentation

◆ getPythonObject()

PyObject * Aqua::InputOutput::UIVec4Variable::getPythonObject ( int  i0 = 0,
int  n = 0 
)
virtual

Get a PyArrayObject interpretation of the variable

Parameters
i0ignored parameter.
nignored parameter
Returns
PyArrayObject Python object (PyArray_UINT subtype).

Reimplemented from Aqua::InputOutput::Variable.

Here is the call graph for this function:

◆ setFromPythonObject()

bool Aqua::InputOutput::UIVec4Variable::setFromPythonObject ( PyObject *  obj,
int  i0 = 0,
int  n = 0 
)
virtual

Set the variable from a Python object

Parameters
objPyArrayObject object (PyArray_UINT subtype).
i0ignored parameter.
nignored parameter
Returns
false if all gone right, true otherwise.

Reimplemented from Aqua::InputOutput::Variable.

Here is the call graph for this function:

The documentation for this class was generated from the following files: