[Lemon-commits] [lemon_svn] alpar: r2846 - in hugo/trunk/lemon: . concept
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 21:50:46 CET 2006
Author: alpar
Date: Wed Jul 12 13:05:00 2006
New Revision: 2846
Modified:
hugo/trunk/lemon/concept/graph.h
hugo/trunk/lemon/list_graph.h
hugo/trunk/lemon/smart_graph.h
Log:
(Hopefully) finish privatizing the copy constr. and operator= in
the graph concept, ListGraph and SmartGraph.
Modified: hugo/trunk/lemon/concept/graph.h
==============================================================================
--- hugo/trunk/lemon/concept/graph.h (original)
+++ hugo/trunk/lemon/concept/graph.h Wed Jul 12 13:05:00 2006
@@ -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
Modified: hugo/trunk/lemon/list_graph.h
==============================================================================
--- hugo/trunk/lemon/list_graph.h (original)
+++ hugo/trunk/lemon/list_graph.h Wed Jul 12 13:05:00 2006
@@ -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:
Modified: hugo/trunk/lemon/smart_graph.h
==============================================================================
--- hugo/trunk/lemon/smart_graph.h (original)
+++ hugo/trunk/lemon/smart_graph.h Wed Jul 12 13:05:00 2006
@@ -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:
More information about the Lemon-commits
mailing list