ASL 0.1.7
Advanced Simulation Library
Loading...
Searching...
No Matches
acl::ElementBase Class Referenceabstract

#include <aclElementBase.h>

Inheritance diagram for acl::ElementBase:
acl::Constant< T > acl::ElementExcerpt acl::ElementFor acl::ElementIfElse acl::ElementParser acl::ElementSyncCopy acl::GroupID acl::Index acl::IndexExt acl::LocalArray< T > acl::MemBlock acl::OperatorBinary acl::OperatorGeneric acl::OperatorTernary acl::OperatorUnary acl::PrivateArray< T > acl::PrivateVariable< T > acl::Variable< T > acl::VariableReference< T > acl::VariableSP< T >

Public Member Functions

virtual string str (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
virtual string getName () const =0
virtual string getAddressSpaceQualifier () const
unsigned int getSize () const
CommandQueue getQueue () const
TypeID getTypeID () const
virtual string getTypeSignature (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
virtual string getLocalDeclaration (const KernelConfiguration &kernelConfig=KERNEL_BASIC) const =0
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 void setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const =0
virtual ~ElementBase ()

Public Attributes

const bool isWritable

Protected Member Functions

 ElementBase (bool isWritable_, unsigned int size_, TypeID typeID_)

Protected Attributes

unsigned int size
TypeID typeID
CommandQueue queue

Detailed Description

Definition at line 49 of file aclElementBase.h.

Constructor & Destructor Documentation

◆ ElementBase()

acl::ElementBase::ElementBase ( bool isWritable_,
unsigned int size_,
TypeID typeID_ )
protected

◆ ~ElementBase()

virtual acl::ElementBase::~ElementBase ( )
virtual

Member Function Documentation

◆ addToKernelSource()

virtual void acl::ElementBase::addToKernelSource ( vector< shared_ptr< ElementBase > > & arguments,
vector< shared_ptr< ElementBase > > & localDeclarations ) const
pure virtual

Adds ElementBase to the kernel source either as an argument or as a local declaration.

◆ getAddressSpaceQualifier()

virtual string acl::ElementBase::getAddressSpaceQualifier ( ) const
virtual

◆ getLocalDeclaration()

◆ getName()

◆ getQueue()

CommandQueue acl::ElementBase::getQueue ( ) const

◆ getSize()

unsigned int acl::ElementBase::getSize ( ) const

◆ getTypeID()

TypeID acl::ElementBase::getTypeID ( ) const

◆ getTypeSignature()

◆ setAsArgument()

◆ str()

Member Data Documentation

◆ isWritable

const bool acl::ElementBase::isWritable

Definition at line 57 of file aclElementBase.h.

◆ queue

CommandQueue acl::ElementBase::queue
protected

Definition at line 54 of file aclElementBase.h.

◆ size

unsigned int acl::ElementBase::size
protected

Definition at line 52 of file aclElementBase.h.

◆ typeID

TypeID acl::ElementBase::typeID
protected

Definition at line 53 of file aclElementBase.h.


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