Blender  V2.93
COM_Device.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * Copyright 2011, Blender Foundation.
17  */
18 
19 #pragma once
20 
21 #include "COM_WorkPackage.h"
22 
23 namespace blender::compositor {
24 
30 class Device {
31 
32  public:
33  Device() = default;
34 
35  Device(const Device &other) = delete;
36  Device(Device &&other) noexcept = default;
37 
38  Device &operator=(const Device &other) = delete;
39  Device &operator=(Device &&other) = delete;
40 
45  virtual ~Device()
46  {
47  }
48 
53  virtual void execute(struct WorkPackage *work) = 0;
54 
55 #ifdef WITH_CXX_GUARDEDALLOC
56  MEM_CXX_CLASS_ALLOC_FUNCS("COM:Device")
57 #endif
58 };
59 
60 } // namespace blender::compositor
Abstract class for device implementations to be used by the Compositor. devices are queried,...
Definition: COM_Device.h:30
Device & operator=(Device &&other)=delete
virtual ~Device()
Declaration of the virtual destructor.
Definition: COM_Device.h:45
Device(const Device &other)=delete
virtual void execute(struct WorkPackage *work)=0
execute a WorkPackage
Device & operator=(const Device &other)=delete
Device(Device &&other) noexcept=default
contains data about work that can be scheduled