Logo Search packages:      
Sourcecode: djvulibre version File versions

void DjVuPortcaster::del_route ( const DjVuPort src,
DjVuPort dst 

The opposite of {add_route}(). Removes the association between src# and dst#

Definition at line 385 of file DjVuPort.cpp.

References GMapTemplate< KTYPE, VTYPE, TI >::contains(), GMapTemplate< KTYPE, VTYPE, TI >::del(), GListTemplate< TYPE, TYPE >::del(), GListTemplate< TYPE, TYPE >::search(), and GListTemplate< TYPE, TYPE >::size().

  GCriticalSectionLock lock(&map_lock);
  if (route_map.contains(src))
    GList<void *> & list=*(GList<void *> *) route_map[src];
    GPosition pos;
    if (list.search(dst, pos)) list.del(pos);
    if (!list.size())
      delete &list;

Generated by  Doxygen 1.6.0   Back to index