Virtual Tag: Undocumented, experimental support for 'LATEST'

This commit is contained in:
Paul Beckingham 2015-08-31 12:59:44 -04:00
parent 86dc14823e
commit ada6c24789
4 changed files with 12 additions and 2 deletions

View file

@ -1287,6 +1287,13 @@ int TDB2::next_id ()
return _id++;
}
////////////////////////////////////////////////////////////////////////////////
// Latest ID is that of the last pending task.
int TDB2::latest_id ()
{
return _id - 1;
}
////////////////////////////////////////////////////////////////////////////////
const std::vector <Task> TDB2::all_tasks ()
{