Cleanup: Move std::deque to depsgraph_type.h
Since `std::deque` is used in a few areas of the Depsgraph, and an upcoming patch adds one more, it's time it's considered as "commonly used type". No functional changes.
This commit is contained in:
parent
c43725e189
commit
a874cfb858
|
@ -28,7 +28,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <cstring> /* required for STREQ later on. */
|
||||
#include <deque>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
@ -121,7 +120,6 @@ extern "C" {
|
|||
|
||||
namespace DEG {
|
||||
|
||||
using std::deque;
|
||||
using std::unordered_set;
|
||||
|
||||
/* ***************** */
|
||||
|
|
|
@ -23,9 +23,6 @@
|
|||
* Implementation of Querying and Filtering API's
|
||||
*/
|
||||
|
||||
// TODO(sergey): Use some sort of wrapper.
|
||||
#include <deque>
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
extern "C" {
|
||||
|
@ -51,7 +48,7 @@ extern "C" {
|
|||
namespace DEG {
|
||||
namespace {
|
||||
|
||||
typedef std::deque<OperationNode *> TraversalQueue;
|
||||
typedef deque<OperationNode *> TraversalQueue;
|
||||
enum {
|
||||
DEG_NODE_VISITED = (1 << 0),
|
||||
};
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
/* TODO(sergey): Ideally we'll just use char* and statically allocated strings
|
||||
* to avoid any possible overhead caused by string (re)allocation/formatting. */
|
||||
#include <string>
|
||||
#include <deque>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
|
@ -47,6 +48,7 @@ struct CustomData_MeshMasks;
|
|||
namespace DEG {
|
||||
|
||||
/* Commonly used types. */
|
||||
using std::deque;
|
||||
using std::map;
|
||||
using std::pair;
|
||||
using std::set;
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
|
||||
#include "intern/eval/deg_eval_flush.h"
|
||||
|
||||
// TODO(sergey): Use some sort of wrapper.
|
||||
#include <deque>
|
||||
#include <cmath>
|
||||
|
||||
#include "BLI_utildefines.h"
|
||||
|
@ -50,6 +48,7 @@ extern "C" {
|
|||
#include "intern/debug/deg_debug.h"
|
||||
#include "intern/depsgraph.h"
|
||||
#include "intern/depsgraph_relation.h"
|
||||
#include "intern/depsgraph_type.h"
|
||||
#include "intern/depsgraph_update.h"
|
||||
#include "intern/node/deg_node.h"
|
||||
#include "intern/node/deg_node_component.h"
|
||||
|
@ -84,7 +83,7 @@ enum {
|
|||
COMPONENT_STATE_DONE = 2,
|
||||
};
|
||||
|
||||
typedef std::deque<OperationNode *> FlushQueue;
|
||||
typedef deque<OperationNode *> FlushQueue;
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
Loading…
Reference in New Issue