ASL  0.1.7
Advanced Simulation Library
Public Member Functions | List of all members

realizes convert_ functionality More...

#include <aclElementConvert.h>

Inheritance diagram for acl::ElementConvert:
Inheritance graph
[legend]
Collaboration diagram for acl::ElementConvert:
Collaboration graph
[legend]

Public Member Functions

 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
 
- 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::OperatorUnary
 OperatorUnary (Element a)
 
 OperatorUnary (Element a, TypeID type)
 
- Protected Member Functions inherited from acl::ElementBase
 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()

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

Member Function Documentation

◆ str()

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

Implements acl::ElementBase.


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