]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/blockallocator.h
Use std::find to locate block iterators in BlockAllocator
[r2c2.git] / source / libr2c2 / blockallocator.h
index 6eecbd4e2c531eb0cbbcc49363a0910598fca774..3c974f21975b06933317eb4c068ae408ae4fce80 100644 (file)
@@ -28,6 +28,8 @@ public:
        };
 
 private:
+       struct BlockMatch;
+
        typedef std::list<BlockIter> BlockList;
 
        Train &train;
@@ -52,10 +54,7 @@ public:
 
        bool has_block(const Block &) const;
        bool is_block_current(const Block &) const;
-private:
-       BlockList::const_iterator find_block(const BlockList::const_iterator &, const BlockList::const_iterator &, const Block &) const;
 
-public:
        void reserve_more();
 private:
        bool reserve_block(const BlockIter &);