(Hopefully) finish privatizing the copy constr. and operator= in
authoralpar
Wed, 12 Jul 2006 11:05:00 +0000
changeset 2132783b1d583be3
parent 2131 e81cd2898f7a
child 2133 b82e4d2b14ac
(Hopefully) finish privatizing the copy constr. and operator= in
the graph concept, ListGraph and SmartGraph.
lemon/concept/graph.h
lemon/list_graph.h
lemon/smart_graph.h
     1.1 --- a/lemon/concept/graph.h	Wed Jul 12 10:49:17 2006 +0000
     1.2 +++ b/lemon/concept/graph.h	Wed Jul 12 11:05:00 2006 +0000
     1.3 @@ -45,6 +45,19 @@
     1.4      ///
     1.5      /// \sa concept
     1.6      class Graph {
     1.7 +    private:
     1.8 +      ///Graphs are \e not copy constructible. Use GraphCopy() instead.
     1.9 +      
    1.10 +      ///Graphs are \e not copy constructible. Use GraphCopy() instead.
    1.11 +      ///
    1.12 +      ListGraph(const ListGraph &) :ExtendedListGraphBase() {};
    1.13 +      ///\brief Assignment of \ref Graph "Graph"s to another ones are
    1.14 +      ///\e not allowed. Use GraphCopy() instead.
    1.15 +      
    1.16 +      ///Assignment of \ref Graph "Graph"s to another ones are
    1.17 +      ///\e not allowed.  Use GraphCopy() instead.
    1.18 +
    1.19 +      void operator=(const ListGraph &) {}
    1.20      public:
    1.21        ///\e
    1.22  
     2.1 --- a/lemon/list_graph.h	Wed Jul 12 10:49:17 2006 +0000
     2.2 +++ b/lemon/list_graph.h	Wed Jul 12 11:05:00 2006 +0000
     2.3 @@ -331,10 +331,10 @@
     2.4      ///ListGraph is \e not copy constructible. Use GraphCopy() instead.
     2.5      ///
     2.6      ListGraph(const ListGraph &) :ExtendedListGraphBase() {};
     2.7 -    ///\brief Assignment of ListGraph to another is \e not allowed.
     2.8 +    ///\brief Assignment of ListGraph to another one is \e not allowed.
     2.9      ///Use GraphCopy() instead.
    2.10  
    2.11 -    ///Assignment of ListGraph to another is \e not allowed.
    2.12 +    ///Assignment of ListGraph to another one is \e not allowed.
    2.13      ///Use GraphCopy() instead.
    2.14      void operator=(const ListGraph &) {}
    2.15    public:
    2.16 @@ -760,10 +760,10 @@
    2.17      ///ListUGraph is \e not copy constructible. Use UGraphCopy() instead.
    2.18      ///
    2.19      ListUGraph(const ListUGraph &) :ExtendedListUGraphBase()  {};
    2.20 -    ///\brief Assignment of ListUGraph to another is \e not allowed.
    2.21 +    ///\brief Assignment of ListUGraph to another one is \e not allowed.
    2.22      ///Use UGraphCopy() instead.
    2.23  
    2.24 -    ///Assignment of ListUGraph to another is \e not allowed.
    2.25 +    ///Assignment of ListUGraph to another one is \e not allowed.
    2.26      ///Use UGraphCopy() instead.
    2.27      void operator=(const ListUGraph &) {}
    2.28    public:
     3.1 --- a/lemon/smart_graph.h	Wed Jul 12 10:49:17 2006 +0000
     3.2 +++ b/lemon/smart_graph.h	Wed Jul 12 11:05:00 2006 +0000
     3.3 @@ -242,10 +242,10 @@
     3.4      ///SmartGraph is \e not copy constructible. Use GraphCopy() instead.
     3.5      ///
     3.6      SmartGraph(const SmartGraph &) :ExtendedSmartGraphBase() {};
     3.7 -    ///\brief Assignment of SmartGraph to another is \e not allowed.
     3.8 +    ///\brief Assignment of SmartGraph to another one is \e not allowed.
     3.9      ///Use GraphCopy() instead.
    3.10  
    3.11 -    ///Assignment of SmartGraph to another is \e not allowed.
    3.12 +    ///Assignment of SmartGraph to another one is \e not allowed.
    3.13      ///Use GraphCopy() instead.
    3.14      void operator=(const SmartGraph &) {}
    3.15    protected:
    3.16 @@ -329,7 +329,7 @@
    3.17      ///restore() function.
    3.18      ///\note After you restore a state, you cannot restore
    3.19      ///a later state, in other word you cannot add again the edges deleted
    3.20 -    ///by restore() using another Snapshot instance.
    3.21 +    ///by restore() using another one Snapshot instance.
    3.22      ///
    3.23      class Snapshot 
    3.24      {
    3.25 @@ -412,10 +412,10 @@
    3.26      ///SmartUGraph is \e not copy constructible. Use UGraphCopy() instead.
    3.27      ///
    3.28      SmartUGraph(const SmartUGraph &) : ExtendedSmartUGraphBase() {};
    3.29 -    ///\brief Assignment of SmartUGraph to another is \e not allowed.
    3.30 +    ///\brief Assignment of SmartUGraph to another one is \e not allowed.
    3.31      ///Use UGraphCopy() instead.
    3.32  
    3.33 -    ///Assignment of SmartUGraph to another is \e not allowed.
    3.34 +    ///Assignment of SmartUGraph to another one is \e not allowed.
    3.35      ///Use UGraphCopy() instead.
    3.36      void operator=(const SmartUGraph &) {}
    3.37    public: