Muesli
 All Classes Namespaces Files Functions Typedefs Enumerations
Public Member Functions | List of all members
msl::AMapFunctor< T, R > Class Template Referenceabstract

Class AMapFunctor represents a functor for the fold skeleton of the distributed array. More...

#include <functors.h>

Inheritance diagram for msl::AMapFunctor< T, R >:
msl::detail::ArrayFunctorBase msl::detail::FunctorBase

Public Member Functions

virtual MSL_USERFUNC R operator() (T value) const =0
 Function call operator has to be implemented by the user. Here, the actual function is implemented. More...
 
virtual ~AMapFunctor ()
 Destructor.
 
- Public Member Functions inherited from msl::detail::ArrayFunctorBase
void init (int nl, int f)
 Initializes its attributes. More...
 
- Public Member Functions inherited from msl::detail::FunctorBase
 FunctorBase ()
 Default constructor.
 
bool useLocalIndices () const
 Checks whether indices are local or global. More...
 
void setLocalIndices (bool value)
 Use this function to configure your functor to use local indices instead of global indices. More...
 
int getTileWidth () const
 Returns the tile_width. If tiling is not used, -1 will be returned. More...
 
void setTileWidth (int value)
 Sets the tile width. More...
 
void notify ()
 Notifies all observed objects (additional arguments) to update.
 
void addArgument (ArgumentType *arg)
 Adds an additional argument to the functor. More...
 
virtual ~FunctorBase ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from msl::detail::ArrayFunctorBase
int nLocal
 
int first
 
- Protected Attributes inherited from msl::detail::FunctorBase
std::vector< ArgumentType * > args
 
int tile_width
 
bool local_indices
 

Detailed Description

template<typename T, typename R>
class msl::AMapFunctor< T, R >

Class AMapFunctor represents a functor for the fold skeleton of the distributed array.

Template Parameters
TInput data type.
ROutput data type.

Member Function Documentation

template<typename T , typename R >
virtual MSL_USERFUNC R msl::AMapFunctor< T, R >::operator() ( value) const
pure virtual

Function call operator has to be implemented by the user. Here, the actual function is implemented.

Parameters
valueInput for the map function.
Returns
Output of the map function.

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