Neuralyzer::Transforms::V2::ComputeContext
Neuralyzer::Transforms::V2::ComputeContext
Context for transform execution. More…
#include <ComputeContext.hpp>
Public Types
| Name | |
|---|---|
| using std::function< void(int progress)> | ProgressCallback |
| using std::function< bool()> | CancellationCheck |
| using std::function< void(std::string const &message)> | Logger |
Public Functions
| Name | |
|---|---|
| void | reportProgress(int p) const |
| bool | shouldCancel() const |
| void | logMessage(std::string const & msg) const |
Public Attributes
| Name | |
|---|---|
| ProgressCallback | progress |
| CancellationCheck | is_cancelled |
| Logger | log |
| void * | provenance_tracker |
Detailed Description
struct Neuralyzer::Transforms::V2::ComputeContext;Context for transform execution.
Provides additional information and services during transform execution:
- Progress reporting
- Cancellation checking
- Logging
- Provenance tracking
Public Types Documentation
using ProgressCallback
using Neuralyzer::Transforms::V2::ComputeContext::ProgressCallback = std::function<void(int progress)>;using CancellationCheck
using Neuralyzer::Transforms::V2::ComputeContext::CancellationCheck = std::function<bool()>;using Logger
using Neuralyzer::Transforms::V2::ComputeContext::Logger = std::function<void(std::string const & message)>;Public Functions Documentation
function reportProgress
inline void reportProgress(
int p
) constfunction shouldCancel
inline bool shouldCancel() constfunction logMessage
inline void logMessage(
std::string const & msg
) constPublic Attributes Documentation
variable progress
ProgressCallback progress;variable is_cancelled
CancellationCheck is_cancelled;variable log
Logger log;variable provenance_tracker
void * provenance_tracker = nullptr;Updated on 2026-11-13 at 20:25:41 +0000