AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Public Member Functions
Aqua::InputOutput::ScalarNumberVariable< T > Class Template Reference

#include <Variable.h>

Inheritance diagram for Aqua::InputOutput::ScalarNumberVariable< T >:
Inheritance graph
[legend]
Collaboration diagram for Aqua::InputOutput::ScalarNumberVariable< T >:
Collaboration graph
[legend]

Public Member Functions

 ScalarNumberVariable (const std::string varname, const std::string vartype)
 Constructor.
 
 ~ScalarNumberVariable ()
 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::Variable
void sync ()
 Wait for variable underlying event to be complete.
 
- Protected Attributes inherited from Aqua::InputOutput::ScalarVariable< T >
_value
 Variable value.
 

Constructor & Destructor Documentation

◆ ScalarNumberVariable()

template<class T >
Aqua::InputOutput::ScalarNumberVariable< T >::ScalarNumberVariable ( const std::string  varname,
const std::string  vartype 
)

Constructor.

Parameters
varnameName of the variable.
vartypeType of the variable.

◆ ~ScalarNumberVariable()

template<class T >
Aqua::InputOutput::ScalarNumberVariable< T >::~ScalarNumberVariable ( )
inline

Destructor.

Member Function Documentation

◆ asString()

template<class T >
const std::string Aqua::InputOutput::ScalarNumberVariable< T >::asString
virtual

Get the variable text representation.

Returns
The variable represented as a string, NULL in case of errors.

Implements Aqua::InputOutput::ScalarVariable< T >.

Here is the call graph for this function:

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