Blender  V3.3
deg_node_factory.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2019 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #include "MEM_guardedalloc.h"
11 
12 #include "intern/depsgraph_type.h"
13 #include "intern/node/deg_node.h"
14 
15 struct ID;
16 
17 namespace blender::deg {
19  virtual NodeType type() const = 0;
20  virtual const char *type_name() const = 0;
21 
22  virtual int id_recalc_tag() const = 0;
23 
24  virtual Node *create_node(const ID *id, const char *subdata, const char *name) const = 0;
25 };
26 
27 template<class ModeObjectType> struct DepsNodeFactoryImpl : public DepsNodeFactory {
28  virtual NodeType type() const override;
29  virtual const char *type_name() const override;
30 
31  virtual int id_recalc_tag() const override;
32 
33  virtual Node *create_node(const ID *id, const char *subdata, const char *name) const override;
34 };
35 
36 /* Register typeinfo */
38 
39 /* Get typeinfo for specified type */
41 
42 } // namespace blender::deg
43 
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Read Guarded memory(de)allocation.
void register_node_typeinfo(DepsNodeFactory *factory)
DepsNodeFactory * type_get_factory(const NodeType type)
Definition: DNA_ID.h:368
virtual Node * create_node(const ID *id, const char *subdata, const char *name) const override
virtual const char * type_name() const override
virtual NodeType type() const override
virtual int id_recalc_tag() const override
virtual NodeType type() const =0
virtual Node * create_node(const ID *id, const char *subdata, const char *name) const =0
virtual const char * type_name() const =0
virtual int id_recalc_tag() const =0