]> git.tdb.fi Git - builder.git/blobdiff - source/dependencycache.h
Comment updates
[builder.git] / source / dependencycache.h
index 701c89ee304e22ff52513a26c5da7cb415246896..4160cec3a41cf5f7fc0cd39ae64202c7d40988ab 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef DEPENDENCYCACHE_H_
 #define DEPENDENCYCACHE_H_
 
@@ -14,9 +7,10 @@ Distributed under the LGPL
 class Package;
 
 /**
-Stores dependencies to avoid expensive operations during DAG building phase.
-The dependencies are stored in a map with target name as key and a list of
-strings as value.  The targets are free to store whatever they want here.
+Stores dependencies to avoid expensive filesystem operations during DAG
+building phase.  The dependencies are stored in a map with target name as key
+and a list of strings as value.  The targets are free to store whatever they
+want here.
 */
 class DependencyCache
 {
@@ -30,14 +24,15 @@ private:
 
 public:
        DependencyCache(SourcePackage &p);
+
        void set_deps(const std::string &tgt, const StringList &d);
+       bool has_deps(const std::string &tgt) const;
        const StringList &get_deps(const std::string &tgt) const;
        const Msp::Time::TimeStamp &get_mtime() const { return mtime; }
        void load();
 
-       /**
-       Saves the depencency cache.  Does nothing if the cache is empty or nothing
-       has changed. */
+       /** Saves the depencency cache.  Does nothing if the cache is empty or
+       nothing has changed. */
        void save() const;
 };