COIN-OR::LEMON - Graph Library

Changeset 2207:75a29ac69c19 in lemon-0.x for lemon/grid_ugraph.h


Ignore:
Timestamp:
09/07/06 15:27:16 (18 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2933
Message:

xy -> dim2::Point

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/grid_ugraph.h

    r2151 r2207  
    2727#include <lemon/bits/graph_extender.h>
    2828
    29 #include <lemon/xy.h>
     29#include <lemon/dim2.h>
    3030
    3131///\ingroup graphs
     
    382382    typedef ExtendedGridUGraphBase Parent;
    383383
    384     /// \brief Map to get the indices of the nodes as xy<int>.
    385     ///
    386     /// Map to get the indices of the nodes as xy<int>.
     384    /// \brief Map to get the indices of the nodes as dim2::Point<int>.
     385    ///
     386    /// Map to get the indices of the nodes as dim2::Point<int>.
    387387    class IndexMap {
    388388    public:
     
    390390      typedef GridUGraph::Node Key;
    391391      /// \brief The value type of the map
    392       typedef xy<int> Value;
     392      typedef dim2::Point<int> Value;
    393393
    394394      /// \brief Constructor
     
    401401      /// The subscript operator.
    402402      Value operator[](Key key) const {
    403         return xy<int>(graph.row(key), graph.col(key));
     403        return dim2::Point<int>(graph.row(key), graph.col(key));
    404404      }
    405405
Note: See TracChangeset for help on using the changeset viewer.