diff options
author | Evan Martin <martine@danga.com> | 2011-12-07 17:35:02 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-07 17:35:02 (GMT) |
commit | 48526b9c08f22ddcf7e36ca02fde0202312920fa (patch) | |
tree | e9c0890d2e5cb27b90ce117945d4babb069bac0e /src/graph.h | |
parent | d27d21a8c38debfd69c1deaa302cdb500511e0af (diff) | |
download | Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.zip Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.tar.gz Ninja-48526b9c08f22ddcf7e36ca02fde0202312920fa.tar.bz2 |
make Node::in_edge_ private
Diffstat (limited to 'src/graph.h')
-rw-r--r-- | src/graph.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/graph.h b/src/graph.h index 694cf35..b6f5139 100644 --- a/src/graph.h +++ b/src/graph.h @@ -68,6 +68,9 @@ struct Node { void set_dirty(bool dirty) { dirty_ = dirty; } void MarkDirty() { dirty_ = true; } + Edge* in_edge() const { return in_edge_; } + void set_in_edge(Edge* edge) { in_edge_ = edge; } + private: string path_; /// Possible values of mtime_: @@ -81,10 +84,13 @@ private: /// edges to build. bool dirty_; + /// The Edge that produces this Node, or NULL when there is no + /// known edge to produce it. + Edge* in_edge_; + // TODO: make these private as well. But don't just blindly add // setters/getters, instead pay attention to the proper API. public: - Edge* in_edge_; vector<Edge*> out_edges_; }; |