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

#include <aclPrivateVariable.h>

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

Public Member Functions

 PrivateVariable ()
 
virtual string str (const KernelConfiguration &kernelConfig) const
 
virtual string getName () const
 
virtual string getAddressSpaceQualifier () 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
 can't be set as an argument More...
 
- Public Member Functions inherited from acl::ElementBase
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::PrivateVariable< T >

This Element appears in the Kernel source code as a private variable (without address space qualifier). It is not passed to the Kernel as an argument.

Examples
testKernel.cc.

Definition at line 38 of file aclPrivateVariable.h.

Constructor & Destructor Documentation

◆ PrivateVariable()

template<typename T >
acl::PrivateVariable< T >::PrivateVariable ( )

Definition at line 57 of file aclPrivateVariable.h.

Member Function Documentation

◆ addToKernelSource()

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

Definition at line 94 of file aclPrivateVariable.h.

◆ getAddressSpaceQualifier()

template<typename T >
string acl::PrivateVariable< T >::getAddressSpaceQualifier ( ) const
virtual

Reimplemented from acl::ElementBase.

Definition at line 76 of file aclPrivateVariable.h.

◆ getLocalDeclaration()

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

Implements acl::ElementBase.

Definition at line 88 of file aclPrivateVariable.h.

◆ getName()

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

Implements acl::ElementBase.

Definition at line 70 of file aclPrivateVariable.h.

◆ getTypeSignature()

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

Implements acl::ElementBase.

Definition at line 82 of file aclPrivateVariable.h.

◆ setAsArgument()

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

can't be set as an argument

Implements acl::ElementBase.

Definition at line 101 of file aclPrivateVariable.h.

◆ str()

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

Implements acl::ElementBase.

Definition at line 65 of file aclPrivateVariable.h.


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