Kaim::IGeneratorGlue Class Reference

Kaim::IGeneratorGlue Class Referenceabstract

#include <igeneratorglue.h>

Class Description

Provides an abstract base interface for a class that the Generator can invoke in order to retrieve objects that implement specific interfaces.

You cannot use this class as-is; you must write your own implementation, create an instance of your class, and pass that instance in the constructor for your Generator instance. Any time the Generator needs to call one of the interfaces managed by the IGeneratorGlue class, it calls the methods in your class instance to retrieve a pointer.

Using this class is an alternative to providing pointers to the interfaces directly in the constructor for the Generator.

Inherits Kaim::RefCountBaseV< C, Stat >.

Inherited by KyGlue::DefaultGeneratorGlue.

Public Member Functions

virtual IParallelForInterfaceGetParallelFor ()=0
 
virtual ITlsAlloc * GetTlsAlloc ()=0
 

Member Function Documentation

virtual IParallelForInterface* Kaim::IGeneratorGlue::GetParallelFor ( )
pure virtual

This method is expected to return a pointer to an object that the Generator will use to parallelize computations over multiple processors, or KY_NULL in order to perform all computations sequentially on a single processor.

This object is not copied; you must ensure that you do not destroy it until after you are finished using the Generator.

Implemented in KyGlue::DefaultGeneratorGlue.

virtual ITlsAlloc* Kaim::IGeneratorGlue::GetTlsAlloc ( )
pure virtual

This method is expected to return a pointer to an object that the Generator will use to allocate and free memory in secondary threads, when configured to use parallel generation.

This object is not copied; you must ensure that you do not destroy it until after you are finished using the Generator.

Implemented in KyGlue::DefaultGeneratorGlue.


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