ASL 0.1.7
Advanced Simulation Library
Loading...
Searching...
No Matches

realizes convert_ functionality More...

#include <aclElementConvert.h>

Inheritance diagram for acl::ElementConvert:
Collaboration diagram for acl::ElementConvert:

Public Member Functions

 ElementConvert (Element a, TypeID type, bool strong=true)
virtual string str (const KernelConfiguration &kernelConfig) const
 ElementConvert (Element a, TypeID type, bool strong=true)
virtual string str (const KernelConfiguration &kernelConfig) const
Public Member Functions inherited from acl::OperatorUnary
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
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::OperatorUnary
 OperatorUnary (Element a)
 OperatorUnary (Element a, TypeID type)
 OperatorUnary (Element a)
 OperatorUnary (Element a, TypeID type)
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::OperatorUnary
Element e
Protected Attributes inherited from acl::ElementBase
unsigned int size
TypeID typeID
CommandQueue queue

Detailed Description

realizes convert_ functionality

The element generates code corresponding to convert function with an apropriate vector index.

The strong parameter defines the form of the operator: convert_ in case of true or (type) in case of false

Definition at line 41 of file aclElementConvert.h.

Constructor & Destructor Documentation

◆ ElementConvert() [1/2]

acl::ElementConvert::ElementConvert ( Element a,
TypeID type,
bool strong = true )

◆ ElementConvert() [2/2]

acl::ElementConvert::ElementConvert ( Element a,
TypeID type,
bool strong = true )

Member Function Documentation

◆ str() [1/2]

virtual string acl::ElementConvert::str ( const KernelConfiguration & kernelConfig) const
virtual

Implements acl::ElementBase.

◆ str() [2/2]

virtual string acl::ElementConvert::str ( const KernelConfiguration & kernelConfig) const
virtual

Implements acl::ElementBase.


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