Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: tools/gn/deps_iterator.h

Issue 1280123005: tools/gn: Remove includes of basictypes.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TOOLS_GN_DEPS_ITERATOR_H_ 5 #ifndef TOOLS_GN_DEPS_ITERATOR_H_
6 #define TOOLS_GN_DEPS_ITERATOR_H_ 6 #define TOOLS_GN_DEPS_ITERATOR_H_
7 7
8 #include "base/basictypes.h"
9 #include "tools/gn/label_ptr.h" 8 #include "tools/gn/label_ptr.h"
10 9
11 class Target; 10 class Target;
12 11
13 // Provides an iterator for iterating over multiple LabelTargetVectors to 12 // Provides an iterator for iterating over multiple LabelTargetVectors to
14 // make it convenient to iterate over all deps of a target. 13 // make it convenient to iterate over all deps of a target.
15 // 14 //
16 // This works by maintaining a simple stack of vectors (since we have a fixed 15 // This works by maintaining a simple stack of vectors (since we have a fixed
17 // number of deps types). When the stack is empty, we've reached the end. This 16 // number of deps types). When the stack is empty, we've reached the end. This
18 // means that the default-constructed iterator == end() for any sequence. 17 // means that the default-constructed iterator == end() for any sequence.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 63
65 const DepsIterator& begin() const { return begin_; } 64 const DepsIterator& begin() const { return begin_; }
66 const DepsIterator& end() const { return end_; } 65 const DepsIterator& end() const { return end_; }
67 66
68 private: 67 private:
69 DepsIterator begin_; 68 DepsIterator begin_;
70 DepsIterator end_; 69 DepsIterator end_;
71 }; 70 };
72 71
73 #endif // TOOLS_GN_DEPS_ITERATOR_H_ 72 #endif // TOOLS_GN_DEPS_ITERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698