acl::ElementBase Class Referenceabstract

`#include <aclElementBase.h>`

Inheritance diagram for acl::ElementBase:
[legend]
Collaboration diagram for acl::ElementBase:
[legend]

## 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. More...
virtual void | setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const =0
virtual | ~ElementBase ()
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. More...
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_)
| 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() [1/2]

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

protected

## ~ElementBase() [1/2]

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

virtual

## ElementBase() [2/2]

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

protected

## ~ElementBase() [2/2]

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

virtual

## Member Function Documentation

## addToKernelSource() [1/2]

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.

## addToKernelSource() [2/2]

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() [1/2]

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

virtual

Reimplemented in acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::Array< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, and acl::Array< T >.

## getAddressSpaceQualifier() [2/2]

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

virtual

Reimplemented in acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::Array< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, and acl::Array< T >.

## getLocalDeclaration() [1/2]

virtual string acl::ElementBase::getLocalDeclaration | ( | const KernelConfiguration & | kernelConfig = `KERNEL_BASIC` | ) | const

pure virtual

Implemented in acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## getLocalDeclaration() [2/2]

virtual string acl::ElementBase::getLocalDeclaration | ( | const KernelConfiguration & | kernelConfig = `KERNEL_BASIC` | ) | const

pure virtual

Implemented in acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## getName() [1/2]

virtual string acl::ElementBase::getName | ( |  | ) | const

pure virtual

Implemented in acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## getName() [2/2]

virtual string acl::ElementBase::getName | ( |  | ) | const

pure virtual

Implemented in acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## getQueue() [1/2]

CommandQueue acl::ElementBase::getQueue | ( |  | ) | const

## getQueue() [2/2]

CommandQueue acl::ElementBase::getQueue | ( |  | ) | const

## getSize() [1/2]

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

## getSize() [2/2]

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

## getTypeID() [1/2]

TypeID acl::ElementBase::getTypeID | ( |  | ) | const

## getTypeID() [2/2]

TypeID acl::ElementBase::getTypeID | ( |  | ) | const

## getTypeSignature() [1/2]

virtual string acl::ElementBase::getTypeSignature | ( | const KernelConfiguration & | kernelConfig = `KERNEL_BASIC` | ) | const

pure virtual

Implemented in acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## getTypeSignature() [2/2]

virtual string acl::ElementBase::getTypeSignature | ( | const KernelConfiguration & | kernelConfig = `KERNEL_BASIC` | ) | const

pure virtual

Implemented in acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## setAsArgument() [1/2]

virtual void acl::ElementBase::setAsArgument | ( | cl::Kernel & | kernel,
|  | unsigned int | argumentIndex
| ) |  | const

pure virtual

Implemented in acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## setAsArgument() [2/2]

virtual void acl::ElementBase::setAsArgument | ( | cl::Kernel & | kernel,
|  | unsigned int | argumentIndex
| ) |  | const

pure virtual

Implemented in acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::OperatorUnary, acl::OperatorTernary, acl::OperatorGeneric, acl::OperatorBinary, acl::ElementSyncCopy, acl::ElementParser, acl::ElementIfElse, acl::ElementFor, acl::ElementExcerpt, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## str() [1/2]

virtual string acl::ElementBase::str | ( | const KernelConfiguration & | kernelConfig = `KERNEL_BASIC` | ) | const

pure virtual

Implemented in acl::OperatorGeneric, acl::OperatorGeneric, acl::ElementGenericAtomicFunction, acl::ElementSyncCopy, acl::ElementSum, acl::ElementSubtraction, acl::ElementSqrt, acl::ElementSin, acl::ElementSelect, acl::ElementProduct, acl::ElementParser, acl::ElementMad, acl::ElementIfElse, acl::ElementGenericUnarySIMD, acl::ElementGenericUnary, acl::ElementGenericBinaryFunction, acl::ElementGenericBinary, acl::ElementFor, acl::ElementExcerpt, acl::ElementDivision, acl::ElementCos, acl::ElementConvert, acl::ElementAssignmentSafe, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::ElementGenericAtomicFunction, acl::ElementSyncCopy, acl::ElementSum, acl::ElementSubtraction, acl::ElementSqrt, acl::ElementSin, acl::ElementSelect, acl::ElementProduct, acl::ElementParser, acl::ElementMad, acl::ElementIfElse, acl::ElementGenericUnarySIMD, acl::ElementGenericUnary, acl::ElementGenericBinaryFunction, acl::ElementGenericBinary, acl::ElementFor, acl::ElementExcerpt, acl::ElementDivision, acl::ElementCos, acl::ElementConvert, acl::ElementAssignmentSafe, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## str() [2/2]

virtual string acl::ElementBase::str | ( | const KernelConfiguration & | kernelConfig = `KERNEL_BASIC` | ) | const

pure virtual

Implemented in acl::OperatorGeneric, acl::OperatorGeneric, acl::ElementGenericAtomicFunction, acl::ElementSyncCopy, acl::ElementSum, acl::ElementSubtraction, acl::ElementSqrt, acl::ElementSin, acl::ElementSelect, acl::ElementProduct, acl::ElementParser, acl::ElementMad, acl::ElementIfElse, acl::ElementGenericUnarySIMD, acl::ElementGenericUnary, acl::ElementGenericBinaryFunction, acl::ElementGenericBinary, acl::ElementFor, acl::ElementExcerpt, acl::ElementDivision, acl::ElementCos, acl::ElementConvert, acl::ElementAssignmentSafe, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, acl::Array< T >, acl::ElementGenericAtomicFunction, acl::ElementSyncCopy, acl::ElementSum, acl::ElementSubtraction, acl::ElementSqrt, acl::ElementSin, acl::ElementSelect, acl::ElementProduct, acl::ElementParser, acl::ElementMad, acl::ElementIfElse, acl::ElementGenericUnarySIMD, acl::ElementGenericUnary, acl::ElementGenericBinaryFunction, acl::ElementGenericBinary, acl::ElementFor, acl::ElementExcerpt, acl::ElementDivision, acl::ElementCos, acl::ElementConvert, acl::ElementAssignmentSafe, acl::VariableSP< T >, acl::VariableReference< T >, acl::Variable< T >, acl::Subvector< T >, acl::PrivateVariable< T >, acl::PrivateArray< T >, acl::LocalArray< T >, acl::IndexExt, acl::Index, acl::GroupID, acl::Constant< T >, and acl::Array< T >.

## 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:

- /build/asl-1Fw6fH/asl-0.1.7/debian/tmp/usr/include/ASL/acl/aclElementBase.h