COIN-OR::LEMON - Graph Library

Changeset 2132:783b1d583be3 in lemon-0.x


Ignore:
Timestamp:
07/12/06 13:05:00 (18 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2846
Message:

(Hopefully) finish privatizing the copy constr. and operator= in
the graph concept, ListGraph? and SmartGraph?.

Location:
lemon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lemon/concept/graph.h

    r2128 r2132  
    4646    /// \sa concept
    4747    class Graph {
     48    private:
     49      ///Graphs are \e not copy constructible. Use GraphCopy() instead.
     50     
     51      ///Graphs are \e not copy constructible. Use GraphCopy() instead.
     52      ///
     53      ListGraph(const ListGraph &) :ExtendedListGraphBase() {};
     54      ///\brief Assignment of \ref Graph "Graph"s to another ones are
     55      ///\e not allowed. Use GraphCopy() instead.
     56     
     57      ///Assignment of \ref Graph "Graph"s to another ones are
     58      ///\e not allowed.  Use GraphCopy() instead.
     59
     60      void operator=(const ListGraph &) {}
    4861    public:
    4962      ///\e
  • lemon/list_graph.h

    r2128 r2132  
    332332    ///
    333333    ListGraph(const ListGraph &) :ExtendedListGraphBase() {};
    334     ///\brief Assignment of ListGraph to another is \e not allowed.
     334    ///\brief Assignment of ListGraph to another one is \e not allowed.
    335335    ///Use GraphCopy() instead.
    336336
    337     ///Assignment of ListGraph to another is \e not allowed.
     337    ///Assignment of ListGraph to another one is \e not allowed.
    338338    ///Use GraphCopy() instead.
    339339    void operator=(const ListGraph &) {}
     
    761761    ///
    762762    ListUGraph(const ListUGraph &) :ExtendedListUGraphBase()  {};
    763     ///\brief Assignment of ListUGraph to another is \e not allowed.
     763    ///\brief Assignment of ListUGraph to another one is \e not allowed.
    764764    ///Use UGraphCopy() instead.
    765765
    766     ///Assignment of ListUGraph to another is \e not allowed.
     766    ///Assignment of ListUGraph to another one is \e not allowed.
    767767    ///Use UGraphCopy() instead.
    768768    void operator=(const ListUGraph &) {}
  • lemon/smart_graph.h

    r2128 r2132  
    243243    ///
    244244    SmartGraph(const SmartGraph &) :ExtendedSmartGraphBase() {};
    245     ///\brief Assignment of SmartGraph to another is \e not allowed.
     245    ///\brief Assignment of SmartGraph to another one is \e not allowed.
    246246    ///Use GraphCopy() instead.
    247247
    248     ///Assignment of SmartGraph to another is \e not allowed.
     248    ///Assignment of SmartGraph to another one is \e not allowed.
    249249    ///Use GraphCopy() instead.
    250250    void operator=(const SmartGraph &) {}
     
    330330    ///\note After you restore a state, you cannot restore
    331331    ///a later state, in other word you cannot add again the edges deleted
    332     ///by restore() using another Snapshot instance.
     332    ///by restore() using another one Snapshot instance.
    333333    ///
    334334    class Snapshot
     
    413413    ///
    414414    SmartUGraph(const SmartUGraph &) : ExtendedSmartUGraphBase() {};
    415     ///\brief Assignment of SmartUGraph to another is \e not allowed.
     415    ///\brief Assignment of SmartUGraph to another one is \e not allowed.
    416416    ///Use UGraphCopy() instead.
    417417
    418     ///Assignment of SmartUGraph to another is \e not allowed.
     418    ///Assignment of SmartUGraph to another one is \e not allowed.
    419419    ///Use UGraphCopy() instead.
    420420    void operator=(const SmartUGraph &) {}
Note: See TracChangeset for help on using the changeset viewer.