acl::Subvector< T > Class Template Reference

`#include <aclSubvector.h>`

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

## Public Member Functions

| Subvector (shared_ptr< Array< T > > vector_, unsigned int size_, unsigned int offset_)
virtual cl::Buffer & | getBuffer ()
virtual string | str (const KernelConfiguration &kernelConfig) const
virtual string | getName () const
virtual string | getTypeSignature (const KernelConfiguration &kernelConfig) const
virtual string | getLocalDeclaration (const KernelConfiguration &kernelConfig) const
virtual void | addToKernelSource (std::vector< Element > &arguments, std::vector< Element > &localDeclarations) const
virtual void | setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const
| Subvector (shared_ptr< Array< T > > vector_, unsigned int size_, unsigned int offset_)
virtual cl::Buffer & | getBuffer ()
virtual string | str (const KernelConfiguration &kernelConfig) const
virtual string | getName () const
virtual string | getTypeSignature (const KernelConfiguration &kernelConfig) const
virtual string | getLocalDeclaration (const KernelConfiguration &kernelConfig) const
virtual void | addToKernelSource (std::vector< Element > &arguments, std::vector< Element > &localDeclarations) const
virtual void | setAsArgument (cl::Kernel &kernel, unsigned int argumentIndex) const
Public Member Functions inherited from acl::MemBlock
shared_ptr< void > | map ()
shared_ptr< void > | map ()
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 ()
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::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_)
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

## Detailed Description

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

Definition at line 39 of file aclSubvector.h.

## Constructor & Destructor Documentation

## Subvector() [1/2]

template<typename T >

acl::Subvector< T >::Subvector | ( | shared_ptr< Array< T > > | vector_,
|  | unsigned int | size_,
|  | unsigned int | offset_
| ) |  |

Definition at line 66 of file aclSubvector.h.

## Subvector() [2/2]

template<typename T >

acl::Subvector< T >::Subvector | ( | shared_ptr< Array< T > > | vector_,
|  | unsigned int | size_,
|  | unsigned int | offset_
| ) |  |

## Member Function Documentation

## addToKernelSource() [1/2]

template<typename T >

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

virtual

Definition at line 130 of file aclSubvector.h.

## addToKernelSource() [2/2]

template<typename T >

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

virtual

## getBuffer() [1/2]

template<typename T >

cl::Buffer & acl::Subvector< T >::getBuffer

virtual

if original buffer is moved within GPU memory

if original buffer is moved within GPU memory

Reimplemented from acl::MemBlock.

Definition at line 90 of file aclSubvector.h.

## getBuffer() [2/2]

template<typename T >

virtual cl::Buffer& acl::Subvector< T >::getBuffer | ( |  | ) |

virtual

Reimplemented from acl::MemBlock.

## getLocalDeclaration() [1/2]

template<typename T >

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

virtual

Implements acl::ElementBase.

Definition at line 122 of file aclSubvector.h.

## getLocalDeclaration() [2/2]

template<typename T >

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

virtual

Implements acl::ElementBase.

## getName() [1/2]

template<typename T >

string acl::Subvector< T >::getName

virtual

Implements acl::ElementBase.

Definition at line 104 of file aclSubvector.h.

## getName() [2/2]

template<typename T >

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

virtual

Implements acl::ElementBase.

## getTypeSignature() [1/2]

template<typename T >

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

virtual

Implements acl::ElementBase.

Definition at line 116 of file aclSubvector.h.

## getTypeSignature() [2/2]

template<typename T >

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

virtual

Implements acl::ElementBase.

## setAsArgument() [1/2]

template<typename T >

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

virtual

Implements acl::ElementBase.

Definition at line 137 of file aclSubvector.h.

## setAsArgument() [2/2]

template<typename T >

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

virtual

Implements acl::ElementBase.

## str() [1/2]

template<typename T >

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

virtual

Implements acl::ElementBase.

Definition at line 110 of file aclSubvector.h.

## str() [2/2]

template<typename T >

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

virtual

Implements acl::ElementBase.

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

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