acl::Array< T > Class Template Reference

Global array. More...

`#include <aclArray.h>`

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

## Public Member Functions

| Array (unsigned int size, CommandQueue queue_=hardware.defaultQueue)
| Array (unsigned int size, T *initArray, CommandQueue queue_=hardware.defaultQueue)
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
| Array (unsigned int size, CommandQueue queue_=hardware.defaultQueue)
| Array (unsigned int size, T *initArray, CommandQueue queue_=hardware.defaultQueue)
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
Public Member Functions inherited from acl::MemBlock
virtual cl::Buffer & | getBuffer ()
shared_ptr< void > | map ()
virtual cl::Buffer & | getBuffer ()
shared_ptr< void > | map ()
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 ()
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 ()

## Protected Attributes

string | name
Protected Attributes inherited from acl::MemBlock
shared_ptr< cl::Buffer > | buffer
weak_ptr< void > | region
Protected Attributes inherited from acl::ElementBase
unsigned int | size
TypeID | typeID
CommandQueue | queue

## Static Protected Attributes

static const string | prefix
static unsigned int | id

## Additional Inherited Members

Public Attributes inherited from acl::ElementBase
const bool | isWritable
Protected Member Functions inherited from acl::MemBlock
| MemBlock ()
| MemBlock (unsigned int size, TypeID typeID, CommandQueue queue_)
| MemBlock (unsigned int size, TypeID typeID, char *initArray, CommandQueue queue_)
virtual void | swapBuffers (MemBlock &a)
| MemBlock ()
| MemBlock (unsigned int size, TypeID typeID, CommandQueue queue_)
| MemBlock (unsigned int size, TypeID typeID, char *initArray, CommandQueue queue_)
virtual void | swapBuffers (MemBlock &a)
Protected Member Functions inherited from acl::ElementBase
| ElementBase (bool isWritable_, unsigned int size_, TypeID typeID_)
| ElementBase (bool isWritable_, unsigned int size_, TypeID typeID_)

## Detailed Description

### template<typename T>
class acl::Array< T >

Global array.

Definition at line 36 of file aclArray.h.

## Constructor & Destructor Documentation

## Array() [1/4]

template<typename T >

acl::Array< T >::Array | ( | unsigned int | size,
|  | CommandQueue | queue_ = `hardware.defaultQueue`
| ) |  |

explicit

Definition at line 63 of file aclArray.h.

## Array() [2/4]

template<typename T >

acl::Array< T >::Array | ( | unsigned int | size,
|  | T * | initArray,
|  | CommandQueue | queue_ = `hardware.defaultQueue`
| ) |  |

Definition at line 71 of file aclArray.h.

## Array() [3/4]

template<typename T >

acl::Array< T >::Array | ( | unsigned int | size,
|  | CommandQueue | queue_ = `hardware.defaultQueue`
| ) |  |

explicit

## Array() [4/4]

template<typename T >

acl::Array< T >::Array | ( | unsigned int | size,
|  | T * | initArray,
|  | CommandQueue | queue_ = `hardware.defaultQueue`
| ) |  |

## Member Function Documentation

## addToKernelSource() [1/2]

template<typename T >

void acl::Array< T >::addToKernelSource | ( | vector< Element > & | arguments,
|  | vector< Element > & | localDeclarations
| ) |  | const

virtual

Definition at line 119 of file aclArray.h.

## addToKernelSource() [2/2]

template<typename T >

virtual void acl::Array< T >::addToKernelSource | ( | vector< Element > & | arguments,
|  | vector< Element > & | localDeclarations
| ) |  | const

virtual

## getAddressSpaceQualifier() [1/2]

template<typename T >

string acl::Array< T >::getAddressSpaceQualifier

virtual

Reimplemented from acl::ElementBase.

Definition at line 105 of file aclArray.h.

## getAddressSpaceQualifier() [2/2]

template<typename T >

virtual string acl::Array< T >::getAddressSpaceQualifier | ( |  | ) | const

virtual

Reimplemented from acl::ElementBase.

## getLocalDeclaration() [1/2]

template<typename T >

string acl::Array< T >::getLocalDeclaration | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

Definition at line 111 of file aclArray.h.

## getLocalDeclaration() [2/2]

template<typename T >

virtual string acl::Array< T >::getLocalDeclaration | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

## getName() [1/2]

template<typename T >

string acl::Array< T >::getName

virtual

Implements acl::ElementBase.

Definition at line 80 of file aclArray.h.

## getName() [2/2]

template<typename T >

virtual string acl::Array< T >::getName | ( |  | ) | const

virtual

Implements acl::ElementBase.

## getTypeSignature() [1/2]

template<typename T >

string acl::Array< T >::getTypeSignature | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

Definition at line 99 of file aclArray.h.

## getTypeSignature() [2/2]

template<typename T >

virtual string acl::Array< T >::getTypeSignature | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

## setAsArgument() [1/2]

template<typename T >

void acl::Array< T >::setAsArgument | ( | cl::Kernel & | kernel,
|  | unsigned int | argumentIndex
| ) |  | const

virtual

Implements acl::ElementBase.

Definition at line 125 of file aclArray.h.

## setAsArgument() [2/2]

template<typename T >

virtual void acl::Array< T >::setAsArgument | ( | cl::Kernel & | kernel,
|  | unsigned int | argumentIndex
| ) |  | const

virtual

Implements acl::ElementBase.

## str() [1/2]

template<typename T >

string acl::Array< T >::str | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

Definition at line 86 of file aclArray.h.

## str() [2/2]

template<typename T >

virtual string acl::Array< T >::str | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

## Member Data Documentation

## id

template<typename T >

static unsigned int acl::Array< T >::id

static protected

Definition at line 41 of file aclArray.h.

## name

template<typename T >

string acl::Array< T >::name

protected

Definition at line 39 of file aclArray.h.

## prefix

template<typename T >

static const string acl::Array< T >::prefix

static protected

Definition at line 40 of file aclArray.h.

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

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