Class FunctorBase represents the base class for all functor classes.
More...
#include <functor_base.h>
|
std::vector< ArgumentType * > | args |
|
int | tile_width |
|
bool | local_indices |
|
Class FunctorBase represents the base class for all functor classes.
Class FunctorBase represents the base class for all functor classes. It includes methods to configure a user implemented functor. Additioally it acts as a observer for additional arguments.
void msl::detail::FunctorBase::addArgument |
( |
ArgumentType * |
arg | ) |
|
|
inline |
Adds an additional argument to the functor.
- Parameters
-
arg | The additional argument. |
int msl::detail::FunctorBase::getTileWidth |
( |
| ) |
const |
|
inline |
Returns the tile_width. If tiling is not used, -1 will be returned.
- Returns
- The tile width.
void msl::detail::FunctorBase::setLocalIndices |
( |
bool |
value | ) |
|
|
inline |
Use this function to configure your functor to use local indices instead of global indices.
- Parameters
-
value | True for local indices, false for global indices. |
void msl::detail::FunctorBase::setTileWidth |
( |
int |
value | ) |
|
|
inline |
Sets the tile width.
- Parameters
-
bool msl::detail::FunctorBase::useLocalIndices |
( |
| ) |
const |
|
inline |
Checks whether indices are local or global.
- Returns
- True if indices passed to the functor are local indices, false otherwise.
The documentation for this class was generated from the following file: