X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrain.h;h=9b228c026a791374f26de248f1a04fab3f8e95a4;hb=e8b19bb2711913226580b93ba127b0628839c10d;hp=113af0e09a3d424f5744406601d4c5640ce67730;hpb=81ee4fbd16b472892b67b35ea85956423a2247ed;p=r2c2.git diff --git a/source/libr2c2/train.h b/source/libr2c2/train.h index 113af0e..9b228c0 100644 --- a/source/libr2c2/train.h +++ b/source/libr2c2/train.h @@ -32,6 +32,7 @@ public: private: virtual void finish(); void blocks(); + void function(unsigned, bool); void name(const std::string &); void quantized_speed(); void router(); @@ -121,7 +122,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;