}
+ Snapshots::const_iterator
+ Snapshots::findPost(const_iterator pre) const
+ {
+ assert(pre != end());
+ assert(pre->getType() == PRE);
+
+ for (const_iterator it = begin(); it != end(); ++it)
+ {
+ if (it->getType() == POST && it->getPreNum() == pre->getNum())
+ return it;
+ }
+
+ return end();
+ }
+
+
unsigned int
Snapshots::nextNumber()
{
iterator find(unsigned int num);
const_iterator find(unsigned int num) const;
+ const_iterator findPost(const_iterator pre) const;
+
private:
void assertInit();