]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/blockallocator.h
Add some more range checks in ArduControl and improve existing ones
[r2c2.git] / source / libr2c2 / blockallocator.h
index 95cb9108098d078dd70636c1a904a9c03f0814e9..fe05603e0e0c997d56058a7904a72afb3dc34fe1 100644 (file)
@@ -48,7 +48,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 +65,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 &);