Commit: adba334093744f011266fa56815f1e2fba90d0ce
Author: Jacques Lucke
Date:   Fri Feb 22 13:53:25 2019 +0100
Branches: functions
https://developer.blender.org/rBadba334093744f011266fa56815f1e2fba90d0ce

utility function

===================================================================

M       source/blender/functions/core/core.cpp
M       source/blender/functions/core/core.hpp

===================================================================

diff --git a/source/blender/functions/core/core.cpp 
b/source/blender/functions/core/core.cpp
index d4f36aa59e8..447c3ece824 100644
--- a/source/blender/functions/core/core.cpp
+++ b/source/blender/functions/core/core.cpp
@@ -29,6 +29,12 @@ namespace FN {
                        && SmallTypeVector::all_equal(this->output_types(), 
outputs));
        }
 
+       bool Signature::has_interface(
+               const Signature &other) const
+       {
+               return this->has_interface(other.input_types(), 
other.output_types());
+       }
+
 
        /* Printing
         ***************************************/
diff --git a/source/blender/functions/core/core.hpp 
b/source/blender/functions/core/core.hpp
index 7a4e16c0cd7..673268564e4 100644
--- a/source/blender/functions/core/core.hpp
+++ b/source/blender/functions/core/core.hpp
@@ -111,6 +111,9 @@ namespace FN {
                        const SmallTypeVector &inputs,
                        const SmallTypeVector &outputs) const;
 
+               bool Signature::has_interface(
+                       const Signature &other) const;
+
                void print(std::string indent = "") const;
 
        private:

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to