if(!_block)
return TrackIter();
- const Block::Endpoint &ep = _block->get_endpoints()[_entry];
+ const Block::Endpoint &ep = _block->get_endpoint(_entry);
return TrackIter(ep.track, ep.track_ep);
}
+const Block::Endpoint &BlockIter::endpoint() const
+{
+ if(!_block)
+ throw InvalidState("BlockIter is null");
+
+ return _block->get_endpoint(_entry);
+}
+
int BlockIter::get_exit(const Route *route) const
{
const vector<Block::Endpoint> &eps = _block->get_endpoints();