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

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

#include <ITreeAlgorithm.h>

Inherits System::Object.

Inherited by Aspose::Tasks::Util::TreeAlgorithmBase< T >.

Public Member Functions

virtual void PreAlg (T el, int32_t level)=0
 Called before processing of a node of a tree. More...
 
virtual void Alg (T el, int32_t level)=0
 Processes a node of a tree. More...
 
virtual void PostAlg (T el, int32_t level)=0
 Called after processing of a node of a tree. More...
 

Detailed Description

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

Represents an algorithm that can be applied to a tree 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::ITreeAlgorithm< T >::Alg ( el,
int32_t  level 
)
pure virtual

Processes a node of a tree.

Parameters
elNode to process.
levelTree node level.

Implemented in Aspose::Tasks::Util::TreeAlgorithmBase< T >, and Aspose::Tasks::Util::TreeAlgorithmBase< System::SharedPtr< Aspose::Tasks::Task > >.

◆ PostAlg()

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

Called after processing of a node of a tree.

Parameters
elNode to process.
levelTree node level.

Implemented in Aspose::Tasks::Util::TreeAlgorithmBase< T >, and Aspose::Tasks::Util::TreeAlgorithmBase< System::SharedPtr< Aspose::Tasks::Task > >.

◆ PreAlg()

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

Called before processing of a node of a tree.

Parameters
elNode to process.
levelTree node level.

Implemented in Aspose::Tasks::Util::TreeAlgorithmBase< T >, and Aspose::Tasks::Util::TreeAlgorithmBase< System::SharedPtr< Aspose::Tasks::Task > >.