lemon/dim2.h
changeset 352 7c5d8de2eac7
parent 313 64f8f7cc6168
child 440 88ed40ad0d4f
equal deleted inserted replaced
10:9caacd180178 11:2681b3b2192d
   574   }
   574   }
   575 
   575 
   576   ///Map of x-coordinates of a <tt>Point</tt>-map
   576   ///Map of x-coordinates of a <tt>Point</tt>-map
   577 
   577 
   578   ///Map of x-coordinates of a \ref Point "Point"-map.
   578   ///Map of x-coordinates of a \ref Point "Point"-map.
   579   ///\ingroup maps
   579   ///
   580   template<class M>
   580   template<class M>
   581   class XMap
   581   class XMap
   582   {
   582   {
   583     M& _map;
   583     M& _map;
   584   public:
   584   public:
   592   };
   592   };
   593 
   593 
   594   ///Returns an XMap class
   594   ///Returns an XMap class
   595 
   595 
   596   ///This function just returns an XMap class.
   596   ///This function just returns an XMap class.
   597   ///
       
   598   ///\ingroup maps
       
   599   ///\relates XMap
   597   ///\relates XMap
   600   template<class M>
   598   template<class M>
   601   inline XMap<M> xMap(M &m)
   599   inline XMap<M> xMap(M &m)
   602   {
   600   {
   603     return XMap<M>(m);
   601     return XMap<M>(m);
   610   }
   608   }
   611 
   609 
   612   ///Constant (read only) version of XMap
   610   ///Constant (read only) version of XMap
   613 
   611 
   614   ///Constant (read only) version of XMap.
   612   ///Constant (read only) version of XMap.
   615   ///\ingroup maps
   613   ///
   616   template<class M>
   614   template<class M>
   617   class ConstXMap
   615   class ConstXMap
   618   {
   616   {
   619     const M& _map;
   617     const M& _map;
   620   public:
   618   public:
   627   };
   625   };
   628 
   626 
   629   ///Returns a ConstXMap class
   627   ///Returns a ConstXMap class
   630 
   628 
   631   ///This function just returns a ConstXMap class.
   629   ///This function just returns a ConstXMap class.
   632   ///
       
   633   ///\ingroup maps
       
   634   ///\relates ConstXMap
   630   ///\relates ConstXMap
   635   template<class M>
   631   template<class M>
   636   inline ConstXMap<M> xMap(const M &m)
   632   inline ConstXMap<M> xMap(const M &m)
   637   {
   633   {
   638     return ConstXMap<M>(m);
   634     return ConstXMap<M>(m);
   639   }
   635   }
   640 
   636 
   641   ///Map of y-coordinates of a <tt>Point</tt>-map
   637   ///Map of y-coordinates of a <tt>Point</tt>-map
   642 
   638 
   643   ///Map of y-coordinates of a \ref Point "Point"-map.
   639   ///Map of y-coordinates of a \ref Point "Point"-map.
   644   ///\ingroup maps
   640   ///
   645   template<class M>
   641   template<class M>
   646   class YMap
   642   class YMap
   647   {
   643   {
   648     M& _map;
   644     M& _map;
   649   public:
   645   public:
   657   };
   653   };
   658 
   654 
   659   ///Returns a YMap class
   655   ///Returns a YMap class
   660 
   656 
   661   ///This function just returns a YMap class.
   657   ///This function just returns a YMap class.
   662   ///
       
   663   ///\ingroup maps
       
   664   ///\relates YMap
   658   ///\relates YMap
   665   template<class M>
   659   template<class M>
   666   inline YMap<M> yMap(M &m)
   660   inline YMap<M> yMap(M &m)
   667   {
   661   {
   668     return YMap<M>(m);
   662     return YMap<M>(m);
   675   }
   669   }
   676 
   670 
   677   ///Constant (read only) version of YMap
   671   ///Constant (read only) version of YMap
   678 
   672 
   679   ///Constant (read only) version of YMap.
   673   ///Constant (read only) version of YMap.
   680   ///\ingroup maps
   674   ///
   681   template<class M>
   675   template<class M>
   682   class ConstYMap
   676   class ConstYMap
   683   {
   677   {
   684     const M& _map;
   678     const M& _map;
   685   public:
   679   public:
   692   };
   686   };
   693 
   687 
   694   ///Returns a ConstYMap class
   688   ///Returns a ConstYMap class
   695 
   689 
   696   ///This function just returns a ConstYMap class.
   690   ///This function just returns a ConstYMap class.
   697   ///
       
   698   ///\ingroup maps
       
   699   ///\relates ConstYMap
   691   ///\relates ConstYMap
   700   template<class M>
   692   template<class M>
   701   inline ConstYMap<M> yMap(const M &m)
   693   inline ConstYMap<M> yMap(const M &m)
   702   {
   694   {
   703     return ConstYMap<M>(m);
   695     return ConstYMap<M>(m);
   706 
   698 
   707   ///\brief Map of the normSquare() of a <tt>Point</tt>-map
   699   ///\brief Map of the normSquare() of a <tt>Point</tt>-map
   708   ///
   700   ///
   709   ///Map of the \ref Point::normSquare() "normSquare()"
   701   ///Map of the \ref Point::normSquare() "normSquare()"
   710   ///of a \ref Point "Point"-map.
   702   ///of a \ref Point "Point"-map.
   711   ///\ingroup maps
       
   712   template<class M>
   703   template<class M>
   713   class NormSquareMap
   704   class NormSquareMap
   714   {
   705   {
   715     const M& _map;
   706     const M& _map;
   716   public:
   707   public:
   723   };
   714   };
   724 
   715 
   725   ///Returns a NormSquareMap class
   716   ///Returns a NormSquareMap class
   726 
   717 
   727   ///This function just returns a NormSquareMap class.
   718   ///This function just returns a NormSquareMap class.
   728   ///
       
   729   ///\ingroup maps
       
   730   ///\relates NormSquareMap
   719   ///\relates NormSquareMap
   731   template<class M>
   720   template<class M>
   732   inline NormSquareMap<M> normSquareMap(const M &m)
   721   inline NormSquareMap<M> normSquareMap(const M &m)
   733   {
   722   {
   734     return NormSquareMap<M>(m);
   723     return NormSquareMap<M>(m);