[Lemon-commits] [lemon_svn] alpar: r541 - hugo/trunk/src/work/alpar
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:40:05 CET 2006
Author: alpar
Date: Mon Apr 26 11:21:27 2004
New Revision: 541
Modified:
hugo/trunk/src/work/alpar/list_graph.h
Log:
Some more docs.
Modified: hugo/trunk/src/work/alpar/list_graph.h
==============================================================================
--- hugo/trunk/src/work/alpar/list_graph.h (original)
+++ hugo/trunk/src/work/alpar/list_graph.h Mon Apr 26 11:21:27 2004
@@ -797,8 +797,10 @@
public:
+ ///Default constructor
NodeSet() : nodes(), first_node(-1),
first_free_node(-1) {}
+ ///Copy constructor
NodeSet(const NodeSet &_g) : nodes(_g.nodes), first_node(_g.first_node),
first_free_node(_g.first_free_node) {}
@@ -1215,9 +1217,18 @@
public:
+ ///Constructor
+
+ ///Construates a new graph based on the nodeset of an existing one.
+ ///\param _G the base graph.
+ ///\todo It looks like a copy constructor, but it isn't.
EdgeSet(NodeGraphType &_G) : G(_G),
nodes(_G), edges(),
first_free_edge(-1) { }
+ ///Copy constructor
+
+ ///Makes a copy of an EdgeSet.
+ ///It will be based on the same graph.
EdgeSet(const EdgeSet &_g) : G(_g.G), nodes(_g.G), edges(_g.edges),
first_free_edge(_g.first_free_edge) { }
More information about the Lemon-commits
mailing list