X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuildgraph.h;h=371b5447e2e01291f8e902103a34d3cb12065565;hb=eadb72197ef2fde2a44914067277054c59b67161;hp=1636e27ae714b3706f78605c16e008708bd19787;hpb=65ba6a595dd4a1d74675abcfdf96307062dc43eb;p=builder.git diff --git a/source/buildgraph.h b/source/buildgraph.h index 1636e27..371b544 100644 --- a/source/buildgraph.h +++ b/source/buildgraph.h @@ -12,12 +12,9 @@ Manages a graph of targets. */ class BuildGraph { -public: - typedef std::map TargetMap; - private: Builder &builder; - TargetMap targets; + std::map targets; Target *goals; public: @@ -27,7 +24,7 @@ public: /** Looks up a target by name. Returns 0 if no such target exists. */ Target *get_target(const std::string &) const; - const TargetMap &get_targets() const { return targets; } + const std::map &get_targets() const { return targets; } /** Adds a target. It can later be retrieved by name. Called from Target constructor. */