X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode.h;fp=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode.h;h=9b838b799f463c33404dc29d474b99b2ca05c803;hb=5dcab4f32891574b830e5919a71e72b80a506641;hp=38e5c56d0e39f50083ad8494410f5a3881a22f2e;hpb=ea136b4b5f94deb671d1a475111a9b1083e98186;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode.h b/synfig-core/src/synfig/valuenode.h index 38e5c56..9b838b7 100644 --- a/synfig-core/src/synfig/valuenode.h +++ b/synfig-core/src/synfig/valuenode.h @@ -305,6 +305,9 @@ public: //! Type that represents a pointer to a ValueNode's constructor + /*! As a pointer to the constructor, it represents a "factory" of + ** objects of this class. + */ typedef LinkableValueNode* (*Factory)(const ValueBase&); typedef bool (*CheckType)(ValueBase::Type); @@ -317,6 +320,13 @@ public: ReleaseVersion release_version; // which version of synfig introduced this valuenode type }; + //! Book of types of linkable value nodes indexed by type name. + /*! While the sifz file is read, each time a new LinkableValueNode entry + ** is found, the factory constructor that the "factory" pointer member + ** of the "BookEntry" struct points to, is called, and a new object of + ** that type is created. + ** \sa LinkableValueNode::Factory + */ typedef std::map Book; static Book& book();