Aspose.Tasks for C++
Aspose::Tasks::Util::RemoveTask Class Reference

Removes the specified task from a tree of tasks. More...

#include <RemoveTask.h>

Inherits Aspose::Tasks::Util::ITreeAlgorithm< System::SharedPtr< Aspose::Tasks::Task > >.

Public Member Functions

 RemoveTask (const System::SharedPtr< Task > &task)
 Initializes a new instance of the RemoveTask class. More...
 
void Alg (System::SharedPtr< Task > el, int32_t level) override
 Do nothing. More...
 
void PostAlg (System::SharedPtr< Task > el, int32_t level) override
 Do nothing. More...
 
void PreAlg (System::SharedPtr< Task > el, int32_t level) override
 Removes the task from the specified parent task. More...
 
- Public Member Functions inherited from Aspose::Tasks::Util::ITreeAlgorithm< System::SharedPtr< Aspose::Tasks::Task > >
virtual void PreAlg (System::SharedPtr< Aspose::Tasks::Task > el, int32_t level)=0
 Called before processing of a node of a tree. More...
 
virtual void Alg (System::SharedPtr< Aspose::Tasks::Task > el, int32_t level)=0
 Processes a node of a tree. More...
 
virtual void PostAlg (System::SharedPtr< Aspose::Tasks::Task > el, int32_t level)=0
 Called after processing of a node of a tree. More...
 

Detailed Description

Removes the specified task from a tree of tasks.

Constructor & Destructor Documentation

◆ RemoveTask()

Aspose::Tasks::Util::RemoveTask::RemoveTask ( const System::SharedPtr< Task > &  task)

Initializes a new instance of the RemoveTask class.

Parameters
taskTask to remove.

Member Function Documentation

◆ Alg()

void Aspose::Tasks::Util::RemoveTask::Alg ( System::SharedPtr< Task el,
int32_t  level 
)
override

Do nothing.

Parameters
elObject to process.
levelTree node level.

◆ PostAlg()

void Aspose::Tasks::Util::RemoveTask::PostAlg ( System::SharedPtr< Task el,
int32_t  level 
)
override

Do nothing.

Parameters
elObject to process.
levelTree node level.

◆ PreAlg()

void Aspose::Tasks::Util::RemoveTask::PreAlg ( System::SharedPtr< Task el,
int32_t  level 
)
override

Removes the task from the specified parent task.

Parameters
elParent task.
levelTree node level.