gwnavgeneration/generator/iparallelforinterface.h Source File
Go to the documentation of this file.
9 #ifndef GwNavGen_IParallelForInterface_H
10 #define GwNavGen_IParallelForInterface_H
32 virtual void Do(
void* element) = 0;
49 InitObject(
IParallelForInterface* parallelFor) : m_parallelFor(parallelFor) {
if (m_parallelFor) m_parallelFor->Init(); }
50 ~InitObject() {
if (m_parallelFor) m_parallelFor->Terminate(); }
Provides an abstract base interface for an object that can treat computational jobs in parallel...
Definition: iparallelforinterface.h:43
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
virtual KyResult Init()=0
This method is expected to perform whatever steps are needed to initialize the parallelization mechan...
Provides an abstract base interface for an object that treats an element of data that can be passed t...
Definition: iparallelforinterface.h:26
virtual KyResult ParallelFor(void **elements, KyUInt32 elementsCount, Kaim::IParallelElementFunctor *functor)=0
This is the main method of the IParallelForInterface: it is called by Gameware Navigation to manage t...
virtual void Do(void *element)=0
This method is carries out whatever processing needs to be done for the specified data element...
Definition: gamekitcrowddispersion.h:20
virtual KyResult Terminate()=0
This method is expected to perform whatever steps are needed to shut down the parallelization mechani...
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36