lemon/bfs.h
changeset 180 4b9ab1324c3b
parent 157 2ccc1afc2c52
child 209 765619b7cbb2
equal deleted inserted replaced
1:5858865b511e 2:fb394ec778b5
  1014     ///function for setting ReachedMap
  1014     ///function for setting ReachedMap
  1015     ///
  1015     ///
  1016     template<class T>
  1016     template<class T>
  1017     BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) 
  1017     BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) 
  1018     {
  1018     {
  1019       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
  1019       Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
  1020       return BfsWizard<DefReachedMapBase<T> >(*this);
  1020       return BfsWizard<DefReachedMapBase<T> >(*this);
  1021     }
  1021     }
  1022     
  1022     
  1023 
  1023 
  1024     template<class T>
  1024     template<class T>
  1035     ///function for setting ProcessedMap
  1035     ///function for setting ProcessedMap
  1036     ///
  1036     ///
  1037     template<class T>
  1037     template<class T>
  1038     BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) 
  1038     BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) 
  1039     {
  1039     {
  1040       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
  1040       Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
  1041       return BfsWizard<DefProcessedMapBase<T> >(*this);
  1041       return BfsWizard<DefProcessedMapBase<T> >(*this);
  1042     }
  1042     }
  1043     
  1043     
  1044    
  1044    
  1045     template<class T>
  1045     template<class T>