acl::ElementIfElse Class Reference

If-Else conditional structure. More...

`#include <aclElementIfElse.h>`

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

## Public Member Functions

| ElementIfElse (Element condition_)
void | addBodyExpressionIf (Element expression_)
void | addBodyExpressionElse (Element expression_)
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
| ElementIfElse (Element condition_)
void | addBodyExpressionIf (Element expression_)
void | addBodyExpressionElse (Element expression_)
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< Element > | expressionIf
vector< Element > | expressionElse
Element | condition
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

If-Else conditional structure.

Definition at line 34 of file aclElementIfElse.h.

## Constructor & Destructor Documentation

## ElementIfElse() [1/2]

acl::ElementIfElse::ElementIfElse | ( | Element | condition_ | ) |

## ElementIfElse() [2/2]

acl::ElementIfElse::ElementIfElse | ( | Element | condition_ | ) |

## Member Function Documentation

## addBodyExpressionElse() [1/2]

void acl::ElementIfElse::addBodyExpressionElse | ( | Element | expression_ | ) |

## addBodyExpressionElse() [2/2]

void acl::ElementIfElse::addBodyExpressionElse | ( | Element | expression_ | ) |

## addBodyExpressionIf() [1/2]

void acl::ElementIfElse::addBodyExpressionIf | ( | Element | expression_ | ) |

## addBodyExpressionIf() [2/2]

void acl::ElementIfElse::addBodyExpressionIf | ( | Element | expression_ | ) |

## addToKernelSource() [1/2]

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

virtual

## addToKernelSource() [2/2]

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

virtual

## getLocalDeclaration() [1/2]

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

virtual

Implements acl::ElementBase.

## getLocalDeclaration() [2/2]

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

virtual

Implements acl::ElementBase.

## getName() [1/2]

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

virtual

Implements acl::ElementBase.

## getName() [2/2]

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

virtual

Implements acl::ElementBase.

## getTypeSignature() [1/2]

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

virtual

Implements acl::ElementBase.

## getTypeSignature() [2/2]

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

virtual

Implements acl::ElementBase.

## setAsArgument() [1/2]

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

virtual

Implements acl::ElementBase.

## setAsArgument() [2/2]

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

virtual

Implements acl::ElementBase.

## str() [1/2]

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

virtual

Implements acl::ElementBase.

## str() [2/2]

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

virtual

Implements acl::ElementBase.

## Member Data Documentation

## condition

Element acl::ElementIfElse::condition

protected

Definition at line 39 of file aclElementIfElse.h.

## expressionElse

vector< Element > acl::ElementIfElse::expressionElse

protected

Definition at line 38 of file aclElementIfElse.h.

## expressionIf

vector< Element > acl::ElementIfElse::expressionIf

protected

Definition at line 37 of file aclElementIfElse.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/aclElementIfElse.h