|
Boost-Commit : |
From: asutton_at_[hidden]
Date: 2008-05-30 17:08:01
Author: asutton
Date: 2008-05-30 17:08:01 EDT (Fri, 30 May 2008)
New Revision: 45964
URL: http://svn.boost.org/trac/boost/changeset/45964
Log:
Renamed adjacency iterator to basic adjacency iterator to avoid a
"chaning the meaning" error.
Removed:
sandbox/SOC/2008/graphs/boost/graphs/adjacency_list/directed/
Text files modified:
sandbox/SOC/2008/graphs/boost/graphs/adjacency_list/adjacency_iterator.hpp | 40 ++++++++++++++++++++--------------------
sandbox/SOC/2008/graphs/boost/graphs/adjacency_list/adjacency_list.hpp | 2 +-
2 files changed, 21 insertions(+), 21 deletions(-)
Modified: sandbox/SOC/2008/graphs/boost/graphs/adjacency_list/adjacency_iterator.hpp
==============================================================================
--- sandbox/SOC/2008/graphs/boost/graphs/adjacency_list/adjacency_iterator.hpp (original)
+++ sandbox/SOC/2008/graphs/boost/graphs/adjacency_list/adjacency_iterator.hpp 2008-05-30 17:08:01 EDT (Fri, 30 May 2008)
@@ -19,7 +19,7 @@
* just a bidirectional iterator. For now, this is simply a bidi iterator.
*/
template <typename Graph>
-class adjacency_iterator
+class basic_adjacency_iterator
{
typedef typename Graph::incidence_iterator iterator;
typedef typename Graph::vertex_descriptor vertex_descriptor;
@@ -33,15 +33,15 @@
typedef vertex_descriptor pointer;
// Constructors
- inline adjacency_iterator();
- inline adjacency_iterator(Graph const* g, vertex_descriptor v, iterator i);
+ inline basic_adjacency_iterator();
+ inline basic_adjacency_iterator(Graph const* g, vertex_descriptor v, iterator i);
- inline adjacency_iterator& operator=(adjacency_iterator const& x);
- inline adjacency_iterator& operator++();
- inline adjacency_iterator& operator--();
+ inline basic_adjacency_iterator& operator=(basic_adjacency_iterator const& x);
+ inline basic_adjacency_iterator& operator++();
+ inline basic_adjacency_iterator& operator--();
- inline bool operator==(adjacency_iterator const& x) const;
- inline bool operator!=(adjacency_iterator const& x) const;
+ inline bool operator==(basic_adjacency_iterator const& x) const;
+ inline bool operator!=(basic_adjacency_iterator const& x) const;
reference operator*();
@@ -54,22 +54,22 @@
// Functions
template <typename G>
-adjacency_iterator<G>::adjacency_iterator()
+basic_adjacency_iterator<G>::basic_adjacency_iterator()
: graph(0)
, vertex()
, iter()
{ }
template <typename G>
-adjacency_iterator<G>::adjacency_iterator(G const* g, vertex_descriptor v, iterator i)
+basic_adjacency_iterator<G>::basic_adjacency_iterator(G const* g, vertex_descriptor v, iterator i)
: graph(g)
, vertex(v)
, iter(i)
{ }
template <typename G>
-adjacency_iterator<G>&
-adjacency_iterator<G>::operator=(adjacency_iterator const& x)
+basic_adjacency_iterator<G>&
+basic_adjacency_iterator<G>::operator=(basic_adjacency_iterator const& x)
{
graph = x.graph;
vertex = x.vertex;
@@ -78,16 +78,16 @@
}
template <typename G>
-adjacency_iterator<G>&
-adjacency_iterator<G>::operator++()
+basic_adjacency_iterator<G>&
+basic_adjacency_iterator<G>::operator++()
{
++iter;
return *this;
}
template <typename G>
-adjacency_iterator<G>&
-adjacency_iterator<G>::operator--()
+basic_adjacency_iterator<G>&
+basic_adjacency_iterator<G>::operator--()
{
--iter;
return *this;
@@ -95,21 +95,21 @@
template <typename G>
bool
-adjacency_iterator<G>::operator==(adjacency_iterator const& x) const
+basic_adjacency_iterator<G>::operator==(basic_adjacency_iterator const& x) const
{
return (graph == x.graph) && (vertex == x.vertex) && (iter == x.iter);
}
template <typename G>
bool
-adjacency_iterator<G>::operator!=(adjacency_iterator const& x) const
+basic_adjacency_iterator<G>::operator!=(basic_adjacency_iterator const& x) const
{
return !operator==(x);
}
template <typename G>
-typename adjacency_iterator<G>::reference
-adjacency_iterator<G>::operator*()
+typename basic_adjacency_iterator<G>::reference
+basic_adjacency_iterator<G>::operator*()
{
typename G::edge_type const& e = graph->edge(*iter);
return e.opposite(vertex);
Modified: sandbox/SOC/2008/graphs/boost/graphs/adjacency_list/adjacency_list.hpp
==============================================================================
--- sandbox/SOC/2008/graphs/boost/graphs/adjacency_list/adjacency_list.hpp (original)
+++ sandbox/SOC/2008/graphs/boost/graphs/adjacency_list/adjacency_list.hpp 2008-05-30 17:08:01 EDT (Fri, 30 May 2008)
@@ -82,7 +82,7 @@
typedef typename vertex_type::incidence_iterator incidence_iterator;
typedef typename vertex_type::incidence_range incidence_range;
- typedef adjacency_iterator<this_type> adjacency_iterator;
+ typedef basic_adjacency_iterator<this_type> adjacency_iterator;
typedef std::pair<adjacency_iterator, adjacency_iterator> adjacency_range;
adjacency_list();
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk