Files
test2/source/blender/depsgraph/intern/node/deg_node_factory.h
Sergey Sharybin c1bc70b711 Cleanup: Add a copyright notice to files and use SPDX format
A lot of files were missing copyright field in the header and
the Blender Foundation contributed to them in a sense of bug
fixing and general maintenance.

This change makes it explicit that those files are at least
partially copyrighted by the Blender Foundation.

Note that this does not make it so the Blender Foundation is
the only holder of the copyright in those files, and developers
who do not have a signed contract with the foundation still
hold the copyright as well.

Another aspect of this change is using SPDX format for the
header. We already used it for the license specification,
and now we state it for the copyright as well, following the
FAQ:

    https://reuse.software/faq/
2023-05-31 16:19:06 +02:00

46 lines
1.1 KiB
C++

/* SPDX-FileCopyrightText: 2019 Blender Foundation
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup depsgraph
*/
#pragma once
#include "MEM_guardedalloc.h"
#include "intern/depsgraph_type.h"
#include "intern/node/deg_node.h"
struct ID;
namespace blender::deg {
struct DepsNodeFactory {
virtual NodeType type() const = 0;
virtual const char *type_name() const = 0;
virtual int id_recalc_tag() const = 0;
virtual Node *create_node(const ID *id, const char *subdata, const char *name) const = 0;
};
template<class ModeObjectType> struct DepsNodeFactoryImpl : public DepsNodeFactory {
virtual NodeType type() const override;
virtual const char *type_name() const override;
virtual int id_recalc_tag() const override;
virtual Node *create_node(const ID *id, const char *subdata, const char *name) const override;
};
/* Register typeinfo */
void register_node_typeinfo(DepsNodeFactory *factory);
/* Get typeinfo for specified type */
DepsNodeFactory *type_get_factory(NodeType type);
} // namespace blender::deg
#include "intern/node/deg_node_factory_impl.h"