AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
Aqua::CalcServer::ArgSetter::Arg Class Reference

#include <Kernel.hpp>

Public Member Functions

 Arg ()
 Constructor.
 Arg (const Arg &arg)
 Copy Constructor.
 ~Arg ()
 Destructor.
size_t size () const
 Get the size of the argument.
const void * value () const
 Get the value of the argument.
cl_event event () const
 Get the last recorded writing event.
bool operator== (InputOutput::Variable *var)
 Check whether the content of a variable is the same than this argument.
bool operator!= (InputOutput::Variable *var)
 Check whether the content of a variable is the same than this argument.
void operator= (const Arg &arg)
 Copy other argument.
void operator= (InputOutput::Variable *var)
 Copy the variable content on the argument.

Protected Member Functions

void set (const size_t s, const void *v, const cl_event e)
 Set the argument.

Constructor & Destructor Documentation

◆ Arg() [1/2]

Aqua::CalcServer::ArgSetter::Arg::Arg ( )
inline

Constructor.

◆ Arg() [2/2]

Aqua::CalcServer::ArgSetter::Arg::Arg ( const Arg & arg)
inline

Copy Constructor.

Parameters
argThe argument to copy
Here is the call graph for this function:

◆ ~Arg()

Aqua::CalcServer::ArgSetter::Arg::~Arg ( )
inline

Destructor.

Member Function Documentation

◆ event()

cl_event Aqua::CalcServer::ArgSetter::Arg::event ( ) const
inline

Get the last recorded writing event.

Returns
The event

◆ operator!=()

bool Aqua::CalcServer::ArgSetter::Arg::operator!= ( InputOutput::Variable * var)
inline

Check whether the content of a variable is the same than this argument.

Parameters
varVariable to compare with
Returns
false if the variable still matches the argument, true otherwise

◆ operator=() [1/2]

void Aqua::CalcServer::ArgSetter::Arg::operator= ( const Arg & arg)
inline

Copy other argument.

Parameters
argArgument to copy
Exceptions
std::bad_allocIf the memory required cannot be allocated
Here is the call graph for this function:

◆ operator=() [2/2]

void Aqua::CalcServer::ArgSetter::Arg::operator= ( InputOutput::Variable * var)
inline

Copy the variable content on the argument.

Parameters
varVariable to assign
Exceptions
std::bad_allocIf the memory required cannot be allocated
Here is the call graph for this function:

◆ operator==()

bool Aqua::CalcServer::ArgSetter::Arg::operator== ( InputOutput::Variable * var)

Check whether the content of a variable is the same than this argument.

Parameters
varVariable to compare with
Returns
true if the variable still matches the argument, false otherwise
Here is the call graph for this function:

◆ set()

void Aqua::CalcServer::ArgSetter::Arg::set ( const size_t s,
const void * v,
const cl_event e )
inlineprotected

Set the argument.

Parameters
sSize
vValue
eEvent
Exceptions
std::bad_allocIf the memory required cannot be allocated

◆ size()

size_t Aqua::CalcServer::ArgSetter::Arg::size ( ) const
inline

Get the size of the argument.

Returns
The size

◆ value()

const void * Aqua::CalcServer::ArgSetter::Arg::value ( ) const
inline

Get the value of the argument.

Returns
The value memory

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