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

#include <aclConstant.h>

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

Public Member Functions

 Constant (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. 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::Constant< T >

Examples
testASLData.cc, testKernel.cc, testKernelMerger.cc, testOperators.cc, and testPerformance.cc.

Definition at line 33 of file aclConstant.h.

Constructor & Destructor Documentation

◆ Constant()

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

Member Function Documentation

◆ addToKernelSource()

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

Definition at line 64 of file aclConstant.h.

◆ getLocalDeclaration()

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

Implements acl::ElementBase.

Definition at line 83 of file aclConstant.h.

◆ getName()

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

Implements acl::ElementBase.

Definition at line 52 of file aclConstant.h.

◆ getTypeSignature()

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

Implements acl::ElementBase.

Definition at line 77 of file aclConstant.h.

◆ setAsArgument()

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

Implements acl::ElementBase.

Definition at line 71 of file aclConstant.h.

◆ str()

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

Implements acl::ElementBase.

Definition at line 58 of file aclConstant.h.


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