acl::ElementParser Class Reference

`#include <aclElementParser.h>`

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

## Public Member Functions

| ElementParser ()
void | addElementNamePair (Element element, string name)
void | setStatement (string statement_)
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 | str (const KernelConfiguration &kernelConfig) const
| ElementParser ()
void | addElementNamePair (Element element, string name)
void | setStatement (string statement_)
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 | str (const KernelConfiguration &kernelConfig) 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 ()
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 ()

## Protected Attributes

vector< pair< Element, string > > | elementNamePairs
string | statement
Protected Attributes inherited from acl::ElementBase
unsigned int | size
TypeID | typeID
CommandQueue | queue

## Additional Inherited Members

Public Attributes inherited from acl::ElementBase
const bool | isWritable
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

Parses `statement` by replacing occurrences of element's `names` by corresponding `element->str()` from elementNamePairs

Definition at line 37 of file aclElementParser.h.

## Constructor & Destructor Documentation

## ElementParser() [1/2]

acl::ElementParser::ElementParser | ( |  | ) |

## ElementParser() [2/2]

acl::ElementParser::ElementParser | ( |  | ) |

## Member Function Documentation

## addElementNamePair() [1/2]

void acl::ElementParser::addElementNamePair | ( | Element | element,
|  | string | name
| ) |  |

## addElementNamePair() [2/2]

void acl::ElementParser::addElementNamePair | ( | Element | element,
|  | string | name
| ) |  |

## addToKernelSource() [1/2]

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

virtual

## addToKernelSource() [2/2]

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

virtual

## getLocalDeclaration() [1/2]

virtual string acl::ElementParser::getLocalDeclaration | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

## getLocalDeclaration() [2/2]

virtual string acl::ElementParser::getLocalDeclaration | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

## getName() [1/2]

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

virtual

Implements acl::ElementBase.

## getName() [2/2]

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

virtual

Implements acl::ElementBase.

## getTypeSignature() [1/2]

virtual string acl::ElementParser::getTypeSignature | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

## getTypeSignature() [2/2]

virtual string acl::ElementParser::getTypeSignature | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

## setAsArgument() [1/2]

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

virtual

Implements acl::ElementBase.

## setAsArgument() [2/2]

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

virtual

Implements acl::ElementBase.

## setStatement() [1/2]

void acl::ElementParser::setStatement | ( | string | statement_ | ) |

## setStatement() [2/2]

void acl::ElementParser::setStatement | ( | string | statement_ | ) |

## str() [1/2]

virtual string acl::ElementParser::str | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

## str() [2/2]

virtual string acl::ElementParser::str | ( | const KernelConfiguration & | kernelConfig | ) | const

virtual

Implements acl::ElementBase.

## Member Data Documentation

## elementNamePairs

vector< pair< Element, string > > acl::ElementParser::elementNamePairs

protected

Definition at line 40 of file aclElementParser.h.

## statement

string acl::ElementParser::statement

protected

Definition at line 41 of file aclElementParser.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/Operators/aclElementParser.h