Added minor utility func

This commit is contained in:
emeric
2020-05-21 09:21:40 +02:00
parent 69ecb169df
commit fe827d2f59
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -107,6 +107,12 @@ TrackList::getById(Session& session, IdType id)
return session.getDboSession().find<TrackList>().where("id = ?").bind(id);
}
bool
TrackList::isEmpty() const
{
return _entries.empty();
}
std::size_t
TrackList::getCount() const
{