COIN-OR::LEMON - Graph Library

Changeset 2128:509846825ddf in lemon-0.x for lemon/list_graph.h


Ignore:
Timestamp:
07/11/06 18:09:49 (18 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2841
Message:
  • Disable the copy constructor and operator= of {List|Smart}[U]Graph.
  • Improve graph doc
  • Also put private members into the doc (if they are documented)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/list_graph.h

    r2123 r2128  
    326326
    327327  class ListGraph : public ExtendedListGraphBase {
     328  private:
     329    ///ListGraph is \e not copy constructible. Use GraphCopy() instead.
     330   
     331    ///ListGraph is \e not copy constructible. Use GraphCopy() instead.
     332    ///
     333    ListGraph(const ListGraph &) :ExtendedListGraphBase() {};
     334    ///\brief Assignment of ListGraph to another is \e not allowed.
     335    ///Use GraphCopy() instead.
     336
     337    ///Assignment of ListGraph to another is \e not allowed.
     338    ///Use GraphCopy() instead.
     339    void operator=(const ListGraph &) {}
    328340  public:
    329341
    330342    typedef ExtendedListGraphBase Parent;
     343
     344    /// Constructor
     345   
     346    /// Constructor.
     347    ///
     348    ListGraph() {}
    331349
    332350    ///Add a new node to the graph.
     
    737755  ///
    738756  class ListUGraph : public ExtendedListUGraphBase {
     757  private:
     758    ///ListUGraph is \e not copy constructible. Use UGraphCopy() instead.
     759
     760    ///ListUGraph is \e not copy constructible. Use UGraphCopy() instead.
     761    ///
     762    ListUGraph(const ListUGraph &) :ExtendedListUGraphBase()  {};
     763    ///\brief Assignment of ListUGraph to another is \e not allowed.
     764    ///Use UGraphCopy() instead.
     765
     766    ///Assignment of ListUGraph to another is \e not allowed.
     767    ///Use UGraphCopy() instead.
     768    void operator=(const ListUGraph &) {}
    739769  public:
     770    /// Constructor
     771   
     772    /// Constructor.
     773    ///
     774    ListUGraph() {}
     775
    740776    typedef ExtendedListUGraphBase Parent;
    741777    /// \brief Add a new node to the graph.
     
    11321168      first_free_edge = edge.id;
    11331169    }
    1134 
     1170 
     1171    ///\e
     1172   
     1173    ///\bug Undocumented
     1174    ///\bug Doesn't destruct the maps.
    11351175    void clear() {
    11361176      aNodes.clear();
Note: See TracChangeset for help on using the changeset viewer.