refactor: bcs split class structure

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2025-10-08 14:53:49 +00:00
committed by Compute-Runtime-Automation
parent 2aabe27531
commit 0597f064e5
8 changed files with 266 additions and 205 deletions

View File

@@ -102,6 +102,7 @@ struct DebugVarBase {
this->set(data);
}
}
void setPrefixType(DebugVarPrefix data) {
prefixType = std::move(data);
}
@@ -117,6 +118,13 @@ struct DebugVarBase {
return (value != defaultValue) ? static_cast<UserType>(value) : userValue;
}
template <typename UserType>
void assignIfNotDefault(UserType &userDataForAssignment) const {
if (value != defaultValue) {
userDataForAssignment = static_cast<UserType>(value);
}
}
private:
T value;
T defaultValue;