- Added ::countTags method.
This commit is contained in:
Paul Beckingham 2014-05-06 21:16:30 -04:00
parent 9cfd3e7d34
commit d00c685699
2 changed files with 7 additions and 0 deletions

View file

@ -190,6 +190,12 @@ void Tree::unTag (const std::string& tag)
}
}
////////////////////////////////////////////////////////////////////////////////
int Tree::countTags () const
{
return _tags.size ();
}
////////////////////////////////////////////////////////////////////////////////
int Tree::count () const
{

View file

@ -56,6 +56,7 @@ public:
bool hasTag (const std::string&) const;
void tag (const std::string&);
void unTag (const std::string&);
int countTags () const;
int count () const;