summaryrefslogtreecommitdiffstats
path: root/Source/cmPropertyMap.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-06-02 11:34:31 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-06-08 10:25:35 (GMT)
commit8d934d861be8c2a8b43d4c421715fb1e8c0c54fd (patch)
tree35ff59319c575fc206915fad3b02335066af0750 /Source/cmPropertyMap.h
parent026f65d284deaea9f2dba41ed956fabf84e17b6d (diff)
downloadCMake-8d934d861be8c2a8b43d4c421715fb1e8c0c54fd.zip
CMake-8d934d861be8c2a8b43d4c421715fb1e8c0c54fd.tar.gz
CMake-8d934d861be8c2a8b43d4c421715fb1e8c0c54fd.tar.bz2
cmPropertyMap: Make std::map container private
Diffstat (limited to 'Source/cmPropertyMap.h')
-rw-r--r--Source/cmPropertyMap.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmPropertyMap.h b/Source/cmPropertyMap.h
index e2348a3..4fcbf58 100644
--- a/Source/cmPropertyMap.h
+++ b/Source/cmPropertyMap.h
@@ -12,12 +12,14 @@
#include <utility>
#include <vector>
-class cmPropertyMap : public std::map<std::string, cmProperty>
+class cmPropertyMap
{
public:
- // -- Properties
- cmProperty* GetOrCreateProperty(const std::string& name);
+ // -- General
+ //! Clear property list
+ void Clear();
+ // -- Properties
void SetProperty(const std::string& name, const char* value);
void AppendProperty(const std::string& name, const char* value,
@@ -31,6 +33,9 @@ public:
//! Get a sorted by key list of property key,value pairs
std::vector<std::pair<std::string, std::string>> GetList() const;
+
+private:
+ std::map<std::string, cmProperty> Map_;
};
#endif