Cache manager should be able to take no arguments
This commit is contained in:
parent
98d10a42d3
commit
6631d78754
@ -64,8 +64,12 @@ public:
|
|||||||
CacheIterator(cmCacheManager &cm) : m_Container(cm) {
|
CacheIterator(cmCacheManager &cm) : m_Container(cm) {
|
||||||
this->Begin();
|
this->Begin();
|
||||||
}
|
}
|
||||||
CacheIterator(cmCacheManager &cm, const char* key) : m_Container(cm) {
|
CacheIterator(cmCacheManager &cm, const char* key) : m_Container(cm)
|
||||||
this->Find(key);
|
{
|
||||||
|
if ( key )
|
||||||
|
{
|
||||||
|
this->Find(key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
CacheEntry const& GetEntry() const { return m_Position->second; }
|
CacheEntry const& GetEntry() const { return m_Position->second; }
|
||||||
@ -105,7 +109,7 @@ public:
|
|||||||
void PrintCache(std::ostream&) const;
|
void PrintCache(std::ostream&) const;
|
||||||
|
|
||||||
///! Get the iterator for an entry with a given key.
|
///! Get the iterator for an entry with a given key.
|
||||||
cmCacheManager::CacheIterator GetCacheIterator(const char *key);
|
cmCacheManager::CacheIterator GetCacheIterator(const char *key=0);
|
||||||
|
|
||||||
///! Remove an entry from the cache
|
///! Remove an entry from the cache
|
||||||
void RemoveCacheEntry(const char* key);
|
void RemoveCacheEntry(const char* key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user