[Bf-blender-cvs] [308b0aa] depsgraph_refactor: Added utility header for a priority_queue implementation.

Lukas Tönne noreply at git.blender.org
Wed May 21 00:15:17 CEST 2014


Commit: 308b0aaeae5df3dc7b817067689192a96dcbf194
Author: Lukas Tönne
Date:   Tue May 20 21:26:33 2014 +0200
https://developer.blender.org/rB308b0aaeae5df3dc7b817067689192a96dcbf194

Added utility header for a priority_queue implementation.

In case this is not universally available on all systems (as with unordered_map), we can still add fallback implementations there later.

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

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

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

diff --git a/source/blender/depsgraph/CMakeLists.txt b/source/blender/depsgraph/CMakeLists.txt
index f0a435b..e063450 100644
--- a/source/blender/depsgraph/CMakeLists.txt
+++ b/source/blender/depsgraph/CMakeLists.txt
@@ -68,9 +68,11 @@ set(SRC
 	intern/depsgraph_queue.h
 	intern/depsgraph_types.h
 	intern/stubs.h
+
 	util/depsgraph_util_hash.h
 	util/depsgraph_util_id.h
 	util/depsgraph_util_map.h
+	util/depsgraph_util_priority_queue.h
 	util/depsgraph_util_rna.h
 	util/depsgraph_util_set.h
 	util/depsgraph_util_string.h
diff --git a/source/blender/depsgraph/util/depsgraph_util_priority_queue.h b/source/blender/depsgraph/util/depsgraph_util_priority_queue.h
new file mode 100644
index 0000000..6425271
--- /dev/null
+++ b/source/blender/depsgraph/util/depsgraph_util_priority_queue.h
@@ -0,0 +1,32 @@
+/*
+ * ***** 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_PRIORITY_QUEUE_H__
+#define __DEPSGRAPH_UTIL_PRIORITY_QUEUE_H__
+
+#include <queue>
+
+using std::priority_queue;
+
+#endif /* __DEPSGRAPH_UTIL_PRIORITY_QUEUE_H__ */




More information about the Bf-blender-cvs mailing list