]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/train.h
Improve the interface and algorithms of BlockAllocator
[r2c2.git] / source / libr2c2 / train.h
index 94348e105c551a76edcd0730af57aac7ed3dd18b..03b8b66d3e1e929869431c0ec472853d823dbdaf 100644 (file)
@@ -63,8 +63,8 @@ private:
        Msp::Time::TimeStamp stop_timeout;
        unsigned functions;
 
+       BlockIter last_entry_block;
        Msp::Time::TimeStamp last_entry_time;
-       float travel_dist;
        bool pure_speed;
        SpeedQuantizer *speed_quantizer;
        bool accurate_position;
@@ -113,7 +113,7 @@ public:
                return 0;
        }
 
-       void place(Block &, unsigned);
+       void place(const BlockIter &);
        void unplace();
        bool is_placed() const { return !allocator.empty(); }
        void stop_at(Block *);