PXL
function.hpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: Apache-2.0
2 // Copyright 2024 XCENA Inc.
3 
4 #pragma once
5 
6 #include <cstdint>
7 #include <pxl/v3_api_guard.hpp>
8 #include <string>
9 
10 namespace pxl
11 {
22 class Function
23 {
24 public:
28  Function(const Function&) = delete;
29 
33  Function& operator=(const Function&) = delete;
34 
40  virtual uint32_t muFuncIndex() const = 0;
41 
47  virtual std::string muFuncName() const = 0;
48 
49 protected:
50  Function() = default;
51  virtual ~Function() = default;
52 };
53 } // namespace pxl
Defines a function to be executed by each thread on the MU.
Definition: function.hpp:23
Function()=default
virtual uint32_t muFuncIndex() const =0
Returns the index of the function.
Function(const Function &)=delete
Deleted copy constructor.
virtual ~Function()=default
Function & operator=(const Function &)=delete
Deleted copy assignment operator.
virtual std::string muFuncName() const =0
Returns the name of the function.
Definition: config.hpp:13