# HG changeset patch # User alpar # Date 1152702300 0 # Node ID 783b1d583be3d8bdb12c8f8b2a9f5e7c44748305 # Parent e81cd2898f7a2134edf3fbba31a8de673161640d (Hopefully) finish privatizing the copy constr. and operator= in the graph concept, ListGraph and SmartGraph. diff -r e81cd2898f7a -r 783b1d583be3 lemon/concept/graph.h --- a/lemon/concept/graph.h Wed Jul 12 10:49:17 2006 +0000 +++ b/lemon/concept/graph.h Wed Jul 12 11:05:00 2006 +0000 @@ -45,6 +45,19 @@ /// /// \sa concept class Graph { + private: + ///Graphs are \e not copy constructible. Use GraphCopy() instead. + + ///Graphs are \e not copy constructible. Use GraphCopy() instead. + /// + ListGraph(const ListGraph &) :ExtendedListGraphBase() {}; + ///\brief Assignment of \ref Graph "Graph"s to another ones are + ///\e not allowed. Use GraphCopy() instead. + + ///Assignment of \ref Graph "Graph"s to another ones are + ///\e not allowed. Use GraphCopy() instead. + + void operator=(const ListGraph &) {} public: ///\e diff -r e81cd2898f7a -r 783b1d583be3 lemon/list_graph.h --- a/lemon/list_graph.h Wed Jul 12 10:49:17 2006 +0000 +++ b/lemon/list_graph.h Wed Jul 12 11:05:00 2006 +0000 @@ -331,10 +331,10 @@ ///ListGraph is \e not copy constructible. Use GraphCopy() instead. /// ListGraph(const ListGraph &) :ExtendedListGraphBase() {}; - ///\brief Assignment of ListGraph to another is \e not allowed. + ///\brief Assignment of ListGraph to another one is \e not allowed. ///Use GraphCopy() instead. - ///Assignment of ListGraph to another is \e not allowed. + ///Assignment of ListGraph to another one is \e not allowed. ///Use GraphCopy() instead. void operator=(const ListGraph &) {} public: @@ -760,10 +760,10 @@ ///ListUGraph is \e not copy constructible. Use UGraphCopy() instead. /// ListUGraph(const ListUGraph &) :ExtendedListUGraphBase() {}; - ///\brief Assignment of ListUGraph to another is \e not allowed. + ///\brief Assignment of ListUGraph to another one is \e not allowed. ///Use UGraphCopy() instead. - ///Assignment of ListUGraph to another is \e not allowed. + ///Assignment of ListUGraph to another one is \e not allowed. ///Use UGraphCopy() instead. void operator=(const ListUGraph &) {} public: diff -r e81cd2898f7a -r 783b1d583be3 lemon/smart_graph.h --- a/lemon/smart_graph.h Wed Jul 12 10:49:17 2006 +0000 +++ b/lemon/smart_graph.h Wed Jul 12 11:05:00 2006 +0000 @@ -242,10 +242,10 @@ ///SmartGraph is \e not copy constructible. Use GraphCopy() instead. /// SmartGraph(const SmartGraph &) :ExtendedSmartGraphBase() {}; - ///\brief Assignment of SmartGraph to another is \e not allowed. + ///\brief Assignment of SmartGraph to another one is \e not allowed. ///Use GraphCopy() instead. - ///Assignment of SmartGraph to another is \e not allowed. + ///Assignment of SmartGraph to another one is \e not allowed. ///Use GraphCopy() instead. void operator=(const SmartGraph &) {} protected: @@ -329,7 +329,7 @@ ///restore() function. ///\note After you restore a state, you cannot restore ///a later state, in other word you cannot add again the edges deleted - ///by restore() using another Snapshot instance. + ///by restore() using another one Snapshot instance. /// class Snapshot { @@ -412,10 +412,10 @@ ///SmartUGraph is \e not copy constructible. Use UGraphCopy() instead. /// SmartUGraph(const SmartUGraph &) : ExtendedSmartUGraphBase() {}; - ///\brief Assignment of SmartUGraph to another is \e not allowed. + ///\brief Assignment of SmartUGraph to another one is \e not allowed. ///Use UGraphCopy() instead. - ///Assignment of SmartUGraph to another is \e not allowed. + ///Assignment of SmartUGraph to another one is \e not allowed. ///Use UGraphCopy() instead. void operator=(const SmartUGraph &) {} public: