X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fblockallocator.h;h=cd6dfd5949d58aa49ec346079fcf8624241f1fd0;hb=6eba064c477836843a2647d777e95823a96dda43;hp=95cb9108098d078dd70636c1a904a9c03f0814e9;hpb=110a865e1a175f304ecaaa7a31b6985cf0c12a99;p=r2c2.git diff --git a/source/libr2c2/blockallocator.h b/source/libr2c2/blockallocator.h index 95cb910..cd6dfd5 100644 --- a/source/libr2c2/blockallocator.h +++ b/source/libr2c2/blockallocator.h @@ -27,6 +27,9 @@ public: void hint(unsigned); }; + sigc::signal signal_advanced; + sigc::signal signal_rear_advanced; + private: struct BlockMatch; @@ -48,7 +51,7 @@ public: void set_active(bool); bool is_active() const { return active; } - void start_from(const BlockIter &); + bool start_from(const BlockIter &); void rewind_to(const Block &); void clear(); bool empty() const { return blocks.empty(); } @@ -65,7 +68,9 @@ public: private: void reserve_more(); bool reserve_block(const BlockIter &); - void advance_to(const Block *); + void advance_front(const Block *, bool); + void advance_front(const Sensor *); + void advance_back(); void release_blocks_begin(const BlockList::iterator &); void release_blocks_end(const BlockList::iterator &); void release_block(const BlockList::iterator &);