Skip to content

sgns::processing::ProcessingCore

Processing core interface. More...

#include <processing_core.hpp>

Inherited by sgns::processing::ProcessingCoreImpl

Public Functions

Name
virtual ~ProcessingCore() =default
virtual outcome::result< SGProcessing::SubTaskResult > ProcessSubTask(const SGProcessing::SubTask & subTask, uint32_t initialHashCode) =0
Processes a subtask and returns the result.
virtual float GetProgress() const
Returns the progress of the processing core as a float between 0.0 and 100.0.

Detailed Description

class sgns::processing::ProcessingCore;

Processing core interface.

Implementations encapsulate specific processing algorithms for subtasks.

Public Functions Documentation

function ~ProcessingCore

virtual ~ProcessingCore() =default

function ProcessSubTask

virtual outcome::result< SGProcessing::SubTaskResult > ProcessSubTask(
    const SGProcessing::SubTask & subTask,
    uint32_t initialHashCode
) =0

Processes a subtask and returns the result.

Parameters:

  • subTask The subtask to process
  • initialHashCode An initial hash code that can be used for processing

Return: The result of processing the subtask, or failure if processing failed

Reimplemented by: sgns::processing::ProcessingCoreImpl::ProcessSubTask

function GetProgress

inline virtual float GetProgress() const

Returns the progress of the processing core as a float between 0.0 and 100.0.

Return: The percentage of the processing of the subtask

Reimplemented by: sgns::processing::ProcessingCoreImpl::GetProgress


Updated on 2026-06-05 at 17:22:18 -0700