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

A base class for implementations of ITreeAlgorithm{T} More...

#include <TreeAlgorithmBase.h>

Inherits Aspose::Tasks::Util::ITreeAlgorithm< T >.

Public Member Functions

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

Detailed Description

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

A base class for implementations of ITreeAlgorithm{T}

Template Parameters
TThe type of the elements.

Member Function Documentation

template<typename T>
void Aspose::Tasks::Util::TreeAlgorithmBase< T >::Alg ( el,
int32_t  level 
)
overridepure virtual

Processes a node of a tree.

Parameters
elNode to process.
levelTree node level.

Implements Aspose::Tasks::Util::ITreeAlgorithm< T >.

template<typename T>
void Aspose::Tasks::Util::TreeAlgorithmBase< T >::PostAlg ( el,
int32_t  level 
)
inlineoverridevirtual

Called after processing of a node of a tree.

Parameters
elNode to process.
levelTree node level.

Implements Aspose::Tasks::Util::ITreeAlgorithm< T >.

template<typename T>
void Aspose::Tasks::Util::TreeAlgorithmBase< T >::PreAlg ( el,
int32_t  level 
)
inlineoverridevirtual

Called before processing of a node of a tree.

Parameters
elNode to process.
levelTree node level.

Implements Aspose::Tasks::Util::ITreeAlgorithm< T >.