lemon/bfs.h
changeset 2614 77bc9718ddd7
parent 2553 bfced05fa852
equal deleted inserted replaced
32:1a1a9a755b9d 33:8e508c75b611
  1016     ///function for setting ReachedMap
  1016     ///function for setting ReachedMap
  1017     ///
  1017     ///
  1018     template<class T>
  1018     template<class T>
  1019     BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) 
  1019     BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) 
  1020     {
  1020     {
  1021       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
  1021       Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
  1022       return BfsWizard<DefReachedMapBase<T> >(*this);
  1022       return BfsWizard<DefReachedMapBase<T> >(*this);
  1023     }
  1023     }
  1024     
  1024     
  1025 
  1025 
  1026     template<class T>
  1026     template<class T>
  1037     ///function for setting ProcessedMap
  1037     ///function for setting ProcessedMap
  1038     ///
  1038     ///
  1039     template<class T>
  1039     template<class T>
  1040     BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) 
  1040     BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) 
  1041     {
  1041     {
  1042       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
  1042       Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
  1043       return BfsWizard<DefProcessedMapBase<T> >(*this);
  1043       return BfsWizard<DefProcessedMapBase<T> >(*this);
  1044     }
  1044     }
  1045     
  1045     
  1046    
  1046    
  1047     template<class T>
  1047     template<class T>