Tree
- Added ::countTags method.
This commit is contained in:
@@ -190,6 +190,12 @@ void Tree::unTag (const std::string& tag)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
int Tree::countTags () const
|
||||||
|
{
|
||||||
|
return _tags.size ();
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int Tree::count () const
|
int Tree::count () const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ public:
|
|||||||
bool hasTag (const std::string&) const;
|
bool hasTag (const std::string&) const;
|
||||||
void tag (const std::string&);
|
void tag (const std::string&);
|
||||||
void unTag (const std::string&);
|
void unTag (const std::string&);
|
||||||
|
int countTags () const;
|
||||||
|
|
||||||
int count () const;
|
int count () const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user