mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Tree
- Added ::countTags method.
This commit is contained in:
parent
9cfd3e7d34
commit
d00c685699
2 changed files with 7 additions and 0 deletions
|
@ -190,6 +190,12 @@ void Tree::unTag (const std::string& tag)
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int Tree::countTags () const
|
||||
{
|
||||
return _tags.size ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int Tree::count () const
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue