Block &Layout::get_block_by_track(Track &t) const
{
for(set<Block *>::const_iterator i=blocks.begin(); i!=blocks.end(); ++i)
- if((*i)->get_tracks().count(&t))
+ if((*i)->has_track(t))
return **i;
throw InvalidParameterValue("No block found for track");
const vector<Track *> &links = track.get_links();
for(set<Block *>::iterator i=blocks.begin(); i!=blocks.end();)
{
- bool del = (*i)->get_tracks().count(&track);
+ bool del = (*i)->has_track(track);
for(vector<Track *>::const_iterator j=links.begin(); (!del && j!=links.end()); ++j)
- del = (*i)->get_tracks().count(*j);
+ del = (*i)->has_track(**j);
if(del)
delete *i++;