ASL 0.1.7
Advanced Simulation Library
Loading...
Searching...
No Matches
acl::VariableSP< T > Class Template Reference

#include <aclVariableSP.h>

Inheritance diagram for acl::VariableSP< T >:
Collaboration diagram for acl::VariableSP< T >:

Public Member Functions

 VariableSP (std::shared_ptr< 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
 VariableSP (std::shared_ptr< 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 ()
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_)
 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::VariableSP< T >

Definition at line 35 of file aclVariableSP.h.

Constructor & Destructor Documentation

◆ VariableSP() [1/2]

template<typename T>
acl::VariableSP< T >::VariableSP ( std::shared_ptr< T > v)
explicit

Definition at line 54 of file aclVariableSP.h.

◆ VariableSP() [2/2]

template<typename T>
acl::VariableSP< T >::VariableSP ( std::shared_ptr< T > v)
explicit

Member Function Documentation

◆ addToKernelSource() [1/2]

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

Definition at line 80 of file aclVariableSP.h.

◆ addToKernelSource() [2/2]

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

◆ getLocalDeclaration() [1/2]

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

Implements acl::ElementBase.

Definition at line 74 of file aclVariableSP.h.

◆ getLocalDeclaration() [2/2]

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

Implements acl::ElementBase.

◆ getName() [1/2]

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

Implements acl::ElementBase.

Definition at line 63 of file aclVariableSP.h.

◆ getName() [2/2]

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

Implements acl::ElementBase.

◆ getTypeSignature() [1/2]

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

Implements acl::ElementBase.

◆ getTypeSignature() [2/2]

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

Implements acl::ElementBase.

◆ setAsArgument() [1/2]

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

Implements acl::ElementBase.

Definition at line 85 of file aclVariableSP.h.

◆ setAsArgument() [2/2]

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

Implements acl::ElementBase.

◆ str() [1/2]

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

Implements acl::ElementBase.

Definition at line 69 of file aclVariableSP.h.

◆ str() [2/2]

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

Implements acl::ElementBase.


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