Skip to content

Commit 26eb045

Browse files
authored
Mark public Task class API with 'final' (#381)
1 parent b1762b0 commit 26eb045

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/core/task/include/task.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@ class Task {
2525
explicit Task(TaskDataPtr task_data);
2626

2727
// set input and output data
28-
void SetData(TaskDataPtr task_data);
28+
virtual void SetData(TaskDataPtr task_data) final;
2929

3030
// validation of data and validation of task attributes before running
31-
virtual bool Validation();
31+
virtual bool Validation() final;
3232

3333
// pre-processing of input data
34-
virtual bool PreProcessing();
34+
virtual bool PreProcessing() final;
3535

3636
// realization of current task
37-
virtual bool Run();
37+
virtual bool Run() final;
3838

3939
// post-processing of output data
40-
virtual bool PostProcessing();
40+
virtual bool PostProcessing() final;
4141

4242
// get input and output data
43-
[[nodiscard]] TaskDataPtr GetData() const;
43+
[[nodiscard]] virtual TaskDataPtr GetData() const final;
4444

4545
virtual ~Task();
4646

4747
protected:
48-
void InternalOrderTest(const std::string &str = __builtin_FUNCTION());
48+
virtual void InternalOrderTest(const std::string &str = __builtin_FUNCTION()) final;
4949
TaskDataPtr task_data;
5050

5151
// implementation of "validation" function

0 commit comments

Comments
 (0)