Aspose.Tasks for C++
Aspose::Tasks::Util::IAlgorithm< T > Class Template Referenceabstract

Represents an algorithm that can be applied to a list of objects T . More...

#include <IAlgorithm.h>

Inherits System::Object.

Public Member Functions

virtual void PreAlg (T el, int32_t index)=0
 Called before processing of an object. More...
 
virtual void Alg (T el, int32_t index)=0
 Processes an object in the list. Called after IAlgorithm<T>::PreAlg; More...
 
virtual void PostAlg (T el, int32_t index)=0
 Called after processing of an object. More...
 

Detailed Description

template<typename T>
class Aspose::Tasks::Util::IAlgorithm< T >

Represents an algorithm that can be applied to a list of objects T .

Template Parameters
TThe type of object to apply method interface to.

Member Function Documentation

◆ Alg()

template<typename T >
virtual void Aspose::Tasks::Util::IAlgorithm< T >::Alg ( el,
int32_t  index 
)
pure virtual

Processes an object in the list. Called after IAlgorithm<T>::PreAlg;

Parameters
elProcessed object.
indexIndex of the object.

◆ PostAlg()

template<typename T >
virtual void Aspose::Tasks::Util::IAlgorithm< T >::PostAlg ( el,
int32_t  index 
)
pure virtual

Called after processing of an object.

Parameters
elProcessed object.
indexIndex of the object.

◆ PreAlg()

template<typename T >
virtual void Aspose::Tasks::Util::IAlgorithm< T >::PreAlg ( el,
int32_t  index 
)
pure virtual

Called before processing of an object.

Parameters
elProcessed object.
indexIndex of the object.