Add CompositeKey::isEmpty().

This commit is contained in:
Felix Geyer 2012-10-12 12:10:13 +02:00
parent 78c125af4e
commit b8b4d35763
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,11 @@ void CompositeKey::clear()
m_keys.clear();
}
bool CompositeKey::isEmpty() const
{
return m_keys.isEmpty();
}
CompositeKey* CompositeKey::clone() const
{
return new CompositeKey(*this);

View File

@ -29,6 +29,7 @@ public:
CompositeKey(const CompositeKey& key);
~CompositeKey();
void clear();
bool isEmpty() const;
CompositeKey* clone() const;
CompositeKey& operator=(const CompositeKey& key);