summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinitions.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-26 13:44:26 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-29 20:51:46 (GMT)
commit24885d4efa17d4232e266ef053899613c32fdeb7 (patch)
treea7941b55c08b9ab4492d7405f07df523819ac20f /Source/cmDefinitions.h
parent012a75a00f060d6ca36cc9ffb97439a7ad526395 (diff)
downloadCMake-24885d4efa17d4232e266ef053899613c32fdeb7.zip
CMake-24885d4efa17d4232e266ef053899613c32fdeb7.tar.gz
CMake-24885d4efa17d4232e266ef053899613c32fdeb7.tar.bz2
cmDefinitions: Replace private constructor with MakeClosure.
Diffstat (limited to 'Source/cmDefinitions.h')
-rw-r--r--Source/cmDefinitions.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/cmDefinitions.h b/Source/cmDefinitions.h
index 4664090..6917402 100644
--- a/Source/cmDefinitions.h
+++ b/Source/cmDefinitions.h
@@ -45,13 +45,11 @@ public:
/** Get the set of all local keys. */
std::vector<std::string> LocalKeys() const;
- /** Compute the closure of all defined keys with values.
- This flattens the scope. The result has no parent. */
- cmDefinitions Closure() const;
-
/** Compute the set of all defined keys. */
std::vector<std::string> ClosureKeys() const;
+ cmDefinitions MakeClosure() const;
+
private:
// String with existence boolean.
struct Def: public std::string
@@ -81,10 +79,7 @@ private:
// Internal query and update methods.
Def const& GetInternal(const std::string& key);
- // Implementation of Closure() method.
- struct ClosureTag {};
- cmDefinitions(ClosureTag const&, cmDefinitions const* root);
- void ClosureImpl(std::set<std::string>& undefined,
+ void MakeClosure(std::set<std::string>& undefined,
cmDefinitions const* defs);
};