Skip to content

Struct emulator::inference::ValidationResult

ClassList > emulator > inference > ValidationResult

Result of configuration validation. More...

  • #include <inference_backend.hpp>

Public Attributes

Type Name
std::vector< std::string > errors
List of error messages.
bool valid = true
True if all checks passed.
std::vector< std::string > warnings
List of warning messages.

Public Functions

Type Name
void add_error (const std::string & msg)
Add an error and mark as invalid.
void add_warning (const std::string & msg)
Add a warning (does not affect validity)
bool has_warnings () const
Check if there are any warnings.

Detailed Description

Returned by InferenceBackend::validate() to report validation status and any errors found.

Public Attributes Documentation

variable errors

List of error messages.

std::vector<std::string> emulator::inference::ValidationResult::errors;


variable valid

True if all checks passed.

bool emulator::inference::ValidationResult::valid;


variable warnings

List of warning messages.

std::vector<std::string> emulator::inference::ValidationResult::warnings;


Public Functions Documentation

function add_error

Add an error and mark as invalid.

inline void emulator::inference::ValidationResult::add_error (
    const std::string & msg
) 


function add_warning

Add a warning (does not affect validity)

inline void emulator::inference::ValidationResult::add_warning (
    const std::string & msg
) 


function has_warnings

Check if there are any warnings.

inline bool emulator::inference::ValidationResult::has_warnings () const



The documentation for this class was generated from the following file components/emulator_comps/common/src/inference/inference_backend.hpp