ASL  0.1.7
Advanced Simulation Library
Public Member Functions | List of all members
acl::Variable< T > Class Template Reference

#include <aclVariable.h>

Inheritance diagram for acl::Variable< T >:
Inheritance graph
[legend]
Collaboration diagram for acl::Variable< T >:
Collaboration graph
[legend]

Public Member Functions

 Variable (T v)
 
virtual string str (const KernelConfiguration &kernelConfig) const
 
virtual string getName () const
 
virtual string getTypeSignature (const KernelConfiguration &kernelConfig) const
 
virtual string getLocalDeclaration (const KernelConfiguration &kernelConfig) const
 
virtual void addToKernelSource (vector< Element > &arguments, vector< Element > &localDeclarations) const
 
virtual void setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const
 
virtual const T getValue () const
 
void setValue (const T &a)
 
- Public Member Functions inherited from acl::ElementBase
virtual string getAddressSpaceQualifier () const
 
unsigned int getSize () const
 
CommandQueue getQueue () const
 
TypeID getTypeID () const
 
virtual void addToKernelSource (vector< shared_ptr< ElementBase > > &arguments, vector< shared_ptr< ElementBase > > &localDeclarations) const =0
 Adds ElementBase to the kernel source either as an argument or as a local declaration. More...
 
virtual ~ElementBase ()
 

Additional Inherited Members

- Public Attributes inherited from acl::ElementBase
const bool isWritable
 
- Protected Member Functions inherited from acl::ElementBase
 ElementBase (bool isWritable_, unsigned int size_, TypeID typeID_)
 
- Protected Attributes inherited from acl::ElementBase
unsigned int size
 
TypeID typeID
 
CommandQueue queue
 

Detailed Description

template<typename T>
class acl::Variable< T >

Examples
testKernel.cc, and testOperators.cc.

Definition at line 36 of file aclVariable.h.

Constructor & Destructor Documentation

◆ Variable()

template<typename T >
acl::Variable< T >::Variable ( v)
explicit

Definition at line 57 of file aclVariable.h.

Member Function Documentation

◆ addToKernelSource()

template<typename T >
void acl::Variable< T >::addToKernelSource ( vector< Element > &  arguments,
vector< Element > &  localDeclarations 
) const
virtual

Definition at line 83 of file aclVariable.h.

◆ getLocalDeclaration()

template<typename T >
string acl::Variable< T >::getLocalDeclaration ( const KernelConfiguration kernelConfig) const
virtual

Implements acl::ElementBase.

Definition at line 77 of file aclVariable.h.

◆ getName()

template<typename T >
string acl::Variable< T >::getName ( ) const
virtual

Implements acl::ElementBase.

Definition at line 66 of file aclVariable.h.

◆ getTypeSignature()

template<typename T >
virtual string acl::Variable< T >::getTypeSignature ( const KernelConfiguration kernelConfig) const
virtual

Implements acl::ElementBase.

◆ getValue()

template<typename T >
const T acl::Variable< T >::getValue ( ) const
virtual

Definition at line 97 of file aclVariable.h.

◆ setAsArgument()

template<typename T >
void acl::Variable< T >::setAsArgument ( cl::Kernel kernel,
unsigned int  argumentIndex 
) const
virtual

Implements acl::ElementBase.

Definition at line 89 of file aclVariable.h.

◆ setValue()

template<typename T >
void acl::Variable< T >::setValue ( const T &  a)

Definition at line 103 of file aclVariable.h.

◆ str()

template<typename T >
string acl::Variable< T >::str ( const KernelConfiguration kernelConfig) const
virtual

Implements acl::ElementBase.

Definition at line 72 of file aclVariable.h.


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