ASL 0.1.7
Advanced Simulation Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
acl::VariableReference< T > Class Template Reference

#include <aclVariableReference.h>

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

Public Member Functions

 VariableReference (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
 
- 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.
 
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::VariableReference< T >
Examples
testKernel.cc.

Definition at line 36 of file aclVariableReference.h.

Constructor & Destructor Documentation

◆ VariableReference()

template<typename T >
acl::VariableReference< T >::VariableReference ( T & v)
explicit

Definition at line 55 of file aclVariableReference.h.

Member Function Documentation

◆ addToKernelSource()

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

Definition at line 82 of file aclVariableReference.h.

◆ getLocalDeclaration()

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

Implements acl::ElementBase.

Definition at line 76 of file aclVariableReference.h.

◆ getName()

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

Implements acl::ElementBase.

Definition at line 64 of file aclVariableReference.h.

◆ getTypeSignature()

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

Implements acl::ElementBase.

◆ setAsArgument()

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

Implements acl::ElementBase.

Definition at line 87 of file aclVariableReference.h.

◆ str()

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

Implements acl::ElementBase.

Definition at line 70 of file aclVariableReference.h.


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