| 1 |
/* |
| 2 |
* Methods of class Map_cart |
| 3 |
* |
| 4 |
*/ |
| 5 |
|
| 6 |
/* |
| 7 |
* Copyright (c) 2002 Nicolas Chamel |
| 8 |
* Copyright (c) 2002 Eric Gourgoulhon |
| 9 |
* |
| 10 |
* This file is part of LORENE. |
| 11 |
* |
| 12 |
* LORENE is free software; you can redistribute it and/or modify |
| 13 |
* it under the terms of the GNU General Public License version 2 |
| 14 |
* as published by the Free Software Foundation. |
| 15 |
* |
| 16 |
* LORENE is distributed in the hope that it will be useful, |
| 17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 |
* GNU General Public License for more details. |
| 20 |
* |
| 21 |
* You should have received a copy of the GNU General Public License |
| 22 |
* along with LORENE; if not, write to the Free Software |
| 23 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 24 |
* |
| 25 |
*/ |
| 26 |
|
| 27 |
char map_cart_C[] = "$Header: /cvsroot/Lorene/C++/Source/Map_cart/map_cart.C,v 1.2 2002/10/16 14:36:42 j_novak Exp $" ; |
| 28 |
|
| 29 |
/* |
| 30 |
* $Id: map_cart.C,v 1.2 2002/10/16 14:36:42 j_novak Exp $ |
| 31 |
* $Log: map_cart.C,v $ |
| 32 |
* Revision 1.2 2002/10/16 14:36:42 j_novak |
| 33 |
* Reorganization of #include instructions of standard C++, in order to |
| 34 |
* use experimental version 3 of gcc. |
| 35 |
* |
| 36 |
* Revision 1.1 2002/03/15 13:16:23 n_chamel |
| 37 |
* Mapping between grid coordinates and physical coordinates |
| 38 |
* |
| 39 |
* |
| 40 |
* |
| 41 |
* |
| 42 |
* $Header: /cvsroot/Lorene/C++/Source/Map_cart/map_cart.C,v 1.2 2002/10/16 14:36:42 j_novak Exp $ |
| 43 |
* |
| 44 |
*/ |
| 45 |
|
| 46 |
// C headers |
| 47 |
|
| 48 |
// Lorene headers |
| 49 |
#include "headcpp.h" |
| 50 |
#include "map_cart.h" |
| 51 |
|
| 52 |
//-------------------------// |
| 53 |
// Constructors // |
| 54 |
//-------------------------// |
| 55 |
|
| 56 |
|
| 57 |
// Standard constructor |
| 58 |
// --------------- |
| 59 |
|
| 60 |
Map_cart:: Map_cart(const Grille_cart& grid_i) : grid(&grid_i) {} |
| 61 |
|
| 62 |
// Copy constructor |
| 63 |
// ------------ |
| 64 |
|
| 65 |
Map_cart:: Map_cart(const Map_cart& map_i) : grid(map_i.grid) {} |
| 66 |
|
| 67 |
//-------------------------// |
| 68 |
// Destructors // |
| 69 |
//-------------------------// |
| 70 |
|
| 71 |
Map_cart::~Map_cart(){} |
| 72 |
|
| 73 |
|
| 74 |
//--------------------// |
| 75 |
// Outputs // |
| 76 |
//--------------------// |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
// Operateurs << |
| 81 |
ostream& operator<<(ostream& ost, const Map_cart & map) { |
| 82 |
map >> ost ; |
| 83 |
return ost ; |
| 84 |
} |
| 85 |
|