fix: Add asserts to ensure NonCopyable and NonMovable 3/n

Related-To: NEO-14068

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2025-02-18 14:35:36 +00:00
committed by Compute-Runtime-Automation
parent ff9d0d7ea0
commit 6b6202446b
33 changed files with 191 additions and 164 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2024 Intel Corporation
* Copyright (C) 2018-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -8,6 +8,7 @@
#pragma once
#include "shared/source/built_ins/sip_kernel_type.h"
#include "shared/source/helpers/non_copyable_or_moveable.h"
#include <string>
#include <vector>
@@ -22,14 +23,10 @@ class OsContext;
struct RootDeviceEnvironment;
class SipKernel {
class SipKernel : NEO::NonCopyableAndNonMovableClass {
public:
SipKernel(SipKernelType type, GraphicsAllocation *sipAlloc, std::vector<char> ssah, std::vector<char> binary);
SipKernel(SipKernelType type, GraphicsAllocation *sipAlloc, std::vector<char> ssah);
SipKernel(const SipKernel &) = delete;
SipKernel &operator=(const SipKernel &) = delete;
SipKernel(SipKernel &&) = delete;
SipKernel &operator=(SipKernel &&) = delete;
virtual ~SipKernel();
SipKernelType getType() const {
@@ -87,4 +84,6 @@ class SipKernel {
SipKernelType type = SipKernelType::count;
};
static_assert(NEO::NonCopyableAndNonMovable<SipKernel>);
} // namespace NEO