X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrain.h;h=dff9aae666fa3f301b02bf21203024c578a677dc;hb=ecd7af790bd3ab7c7e768f68968379e1feea56a9;hp=113af0e09a3d424f5744406601d4c5640ce67730;hpb=81ee4fbd16b472892b67b35ea85956423a2247ed;p=r2c2.git diff --git a/source/libr2c2/train.h b/source/libr2c2/train.h index 113af0e..dff9aae 100644 --- a/source/libr2c2/train.h +++ b/source/libr2c2/train.h @@ -121,7 +121,10 @@ public: bool is_placed() const { return !allocator.empty(); } void stop_at(Block *); bool is_block_critical(const Block &) const; - BlockIter get_first_noncritical_block() const; + BlockIter get_last_critical_block() const; +private: + BlockIter check_critical_blocks(const Block *) const; +public: void refresh_blocks_from(Block &); const BlockAllocator &get_block_allocator() const { return allocator; } float get_reserved_distance() const;