Add FileContainerR::ForEachTag().

This commit is contained in:
Yury Melnichek 2011-01-04 16:22:32 +01:00 committed by Alex Zolotarev
parent 9b0405dac2
commit 1b54e1794c

View file

@ -55,6 +55,12 @@ public:
uint32_t logPageCount = 10);
FileReader GetReader(Tag const & tag) const;
template <typename F> void ForEachTag(F f) const
{
for (size_t i = 0; i < m_info.size(); ++i)
f(m_info[i].m_tag);
}
};
class FilesContainerW : public FilesContainerBase