Base class for argument types of functors. More...
#include <argtype.h>
Public Member Functions | |
virtual void | update ()=0 |
Updates all pointer members to point to the correct memory. | |
virtual | ~ArgumentType () |
Virtual destructor. | |
Base class for argument types of functors.
Arguments to functors are added in terms of data members. The types (except for POD types) of these data members must inherit from this class. This is necessary in a hybrid (and/or in a multi-GPU) setting. Pointer members need to point to the correct memory: when dereferenced by the CPU the pointer must point to some location in host main memory, when dereferenced by GPU 1 it must point to some location in GPU 1 main memory and so on.