[Bf-blender-cvs] [56a1125] depsgraph_refactor: New utility header for bind and function.

Lukas Tönne noreply at git.blender.org
Sun Jun 8 12:46:53 CEST 2014


Commit: 56a112583341f04f2045d594fe30db61ec3a3d17
Author: Lukas Tönne
Date:   Sun Jun 8 11:17:40 2014 +0200
https://developer.blender.org/rB56a112583341f04f2045d594fe30db61ec3a3d17

New utility header for bind and function.

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

M	source/blender/depsgraph/CMakeLists.txt
A	source/blender/depsgraph/util/depsgraph_util_function.h

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

diff --git a/source/blender/depsgraph/CMakeLists.txt b/source/blender/depsgraph/CMakeLists.txt
index faacc7a..a0d533d 100644
--- a/source/blender/depsgraph/CMakeLists.txt
+++ b/source/blender/depsgraph/CMakeLists.txt
@@ -72,6 +72,7 @@ set(SRC
 	intern/depsgraph_types.h
 	intern/stubs.h
 
+	util/depsgraph_util_function.h
 	util/depsgraph_util_hash.h
 	util/depsgraph_util_id.h
 	util/depsgraph_util_map.h
diff --git a/source/blender/depsgraph/util/depsgraph_util_function.h b/source/blender/depsgraph/util/depsgraph_util_function.h
new file mode 100644
index 0000000..5be9330
--- /dev/null
+++ b/source/blender/depsgraph/util/depsgraph_util_function.h
@@ -0,0 +1,34 @@
+/*
+ * ***** BEGIN GPL LICENSE BLOCK *****
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * The Original Code is Copyright (C) 2014 Blender Foundation.
+ * All rights reserved.
+ *
+ * Original Author: Lukas Toenne
+ * Contributor(s): 
+ */
+
+#ifndef __DEPSGRAPH_UTIL_FUNCTION_H__
+#define __DEPSGRAPH_UTIL_FUNCTION_H__
+
+#include <functional>
+
+using std::bind;
+using std::function;
+using std::placeholders;
+
+#endif /* __DEPSGRAPH_UTIL_SET_H__ */




More information about the Bf-blender-cvs mailing list