| 1 | /* |
| 2 | * Definition of Lorene class Param |
| 3 | * |
| 4 | */ |
| 5 | |
| 6 | /* |
| 7 | * Copyright (c) 1999-2005 Eric Gourgoulhon |
| 8 | * Copyright (c) 2000-2003 Jerome Novak |
| 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 as published by |
| 14 | * the Free Software Foundation; either version 2 of the License, or |
| 15 | * (at your option) any later version. |
| 16 | * |
| 17 | * LORENE is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with LORENE; if not, write to the Free Software |
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 25 | * |
| 26 | */ |
| 27 | |
| 28 | |
| 29 | #ifndef __PARAM_H_ |
| 30 | #define __PARAM_H_ |
| 31 | |
| 32 | |
| 33 | /* |
| 34 | * $Id: param.h,v 1.9 2014/10/13 08:52:36 j_novak Exp $ |
| 35 | * $Log: param.h,v $ |
| 36 | * Revision 1.9 2014/10/13 08:52:36 j_novak |
| 37 | * Lorene classes and functions now belong to the namespace Lorene. |
| 38 | * |
| 39 | * Revision 1.8 2006/06/15 08:15:36 j_novak |
| 40 | * Removed members linked to Qtenseur objects. |
| 41 | * Added members for Matrice objects. |
| 42 | * |
| 43 | * Revision 1.7 2005/08/13 16:08:20 m_saijo |
| 44 | * Corrected the documents related to the Star |
| 45 | * |
| 46 | * Revision 1.6 2005/08/13 16:03:36 m_saijo |
| 47 | * Added storage of a Star |
| 48 | * |
| 49 | * Revision 1.5 2005/03/24 21:55:58 e_gourgoulhon |
| 50 | * Added storage of a Scalar. |
| 51 | * |
| 52 | * Revision 1.4 2004/03/22 13:12:43 j_novak |
| 53 | * Modification of comments to use doxygen instead of doc++ |
| 54 | * |
| 55 | * Revision 1.3 2003/09/25 12:08:02 j_novak |
| 56 | * Tensors can be stored in Param objects |
| 57 | * |
| 58 | * Revision 1.2 2002/09/19 09:52:42 j_novak |
| 59 | * Added objects Qtenseur and Qmetrique for 4D tensor and metric handling. |
| 60 | * |
| 61 | * Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon |
| 62 | * LORENE |
| 63 | * |
| 64 | * Revision 1.10 2001/10/27 09:26:24 novak |
| 65 | * *** empty log message *** |
| 66 | * |
| 67 | * Revision 1.9 2001/10/11 07:44:12 eric |
| 68 | * Ajout du stokage des Etoile's |
| 69 | * |
| 70 | * Revision 1.8 2000/10/24 14:54:49 novak |
| 71 | * Added the function clean_all() |
| 72 | * |
| 73 | * Revision 1.7 2000/05/25 12:39:19 eric |
| 74 | * MODIFICATION MAJEURE: pour les int et les double, ce sont desormais les |
| 75 | * adresses qui sont stokees, et non plus les nombres eux-memes |
| 76 | * (le traitement des int et des double est donc desormais completement |
| 77 | * aligne sur celui des Tbl, Cmp, etc...) |
| 78 | * |
| 79 | * Revision 1.6 1999/12/29 13:10:39 eric |
| 80 | * Ajout du stokage des Mtbl_cf. |
| 81 | * |
| 82 | * Revision 1.5 1999/12/27 12:16:43 eric |
| 83 | * Ajout du stokage des mappings (class Map). |
| 84 | * |
| 85 | * Revision 1.4 1999/12/16 10:27:40 eric |
| 86 | * Ajout des membres modifiables. |
| 87 | * Par defaut, les objets listes sont const. |
| 88 | * |
| 89 | * Revision 1.3 1999/12/15 16:49:52 eric |
| 90 | * *** empty log message *** |
| 91 | * |
| 92 | * Revision 1.2 1999/12/15 16:22:36 eric |
| 93 | * Changement de l'ordre des arguments dans add_* |
| 94 | * Argument par defaut: position = 0 |
| 95 | * Ajout du stokage des int et des double. |
| 96 | * |
| 97 | * Revision 1.1 1999/12/13 14:35:56 eric |
| 98 | * Initial revision |
| 99 | * |
| 100 | * |
| 101 | * $Header: /cvsroot/Lorene/C++/Include/param.h,v 1.9 2014/10/13 08:52:36 j_novak Exp $ |
| 102 | * |
| 103 | */ |
| 104 | |
| 105 | namespace Lorene { |
| 106 | class Tbl ; |
| 107 | class Itbl ; |
| 108 | class Matrice ; |
| 109 | class Mtbl_cf ; |
| 110 | class Map ; |
| 111 | class Cmp ; |
| 112 | class Tenseur ; |
| 113 | class Tensor ; |
| 114 | class Scalar ; |
| 115 | class Etoile ; |
| 116 | class Star ; |
| 117 | |
| 118 | /** Parameter storage. |
| 119 | * |
| 120 | * This class is intended to store addresses of various Lorene objects to |
| 121 | * pass them as parameters in some subroutines. |
| 122 | * \ingroup (util) |
| 123 | * |
| 124 | */ |
| 125 | class Param { |
| 126 | |
| 127 | // Data : |
| 128 | // ----- |
| 129 | private: |
| 130 | int n_int ; ///< Number of \c int 's (integers). |
| 131 | /// Array (size \c n_int ) of the \c int 's addresses. |
| 132 | const int** p_int ; |
| 133 | |
| 134 | int n_int_mod ; ///< Number of modifiable \c int 's (integers). |
| 135 | /// Array (size \c n_int_mod ) of the modifiable \c int 's addresses. |
| 136 | int** p_int_mod ; |
| 137 | |
| 138 | int n_double ; ///< Number of \c double 's (double precis. numbers). |
| 139 | /// Array (size \c n_double ) of the \c double 's addresses. |
| 140 | const double** p_double ; |
| 141 | |
| 142 | int n_double_mod ; ///< Number of modifiable \c double 's (double precis. numbers). |
| 143 | /// Array (size \c n_double_mod ) of the \c double 's addresses |
| 144 | double** p_double_mod ; |
| 145 | |
| 146 | |
| 147 | int n_tbl ; ///< Number of \c Tbl 's |
| 148 | /// Array (size \c n_tbl ) of the \c Tbl 's addresses |
| 149 | const Tbl** p_tbl ; |
| 150 | |
| 151 | int n_tbl_mod ; ///< Number of modifiable \c Tbl 's |
| 152 | /// Array (size \c n_tbl_mod ) of the modifiable \c Tbl 's addresses |
| 153 | Tbl** p_tbl_mod ; |
| 154 | |
| 155 | int n_itbl ; ///< Number of \c Itbl 's |
| 156 | /// Array (size \c n_itbl ) of the \c Itbl 's addresses |
| 157 | const Itbl** p_itbl ; |
| 158 | |
| 159 | int n_itbl_mod ; ///< Number of modifiable \c Itbl 's |
| 160 | /// Array (size \c n_itbl_mod ) of the modifiable \c Itbl 's addresses |
| 161 | Itbl** p_itbl_mod ; |
| 162 | |
| 163 | int n_matrice ; ///< Number of \c Matrice 's |
| 164 | /// Array (size \c n_matrice ) of the \c Matrice 's addresses |
| 165 | const Matrice** p_matrice ; |
| 166 | |
| 167 | int n_matrice_mod ; ///< Number of modifiable \c Matrice 's |
| 168 | /// Array (size \c n_matrice_mod ) of the modifiable \c Matrice 's addresses |
| 169 | Matrice** p_matrice_mod ; |
| 170 | |
| 171 | int n_cmp ; ///< Number of \c Cmp 's |
| 172 | /// Array (size \c n_cmp ) of the \c Cmp 's addresses |
| 173 | const Cmp** p_cmp ; |
| 174 | |
| 175 | int n_cmp_mod ; ///< Number of modifiable \c Cmp 's |
| 176 | /// Array (size \c n_cmp_mod ) of the modifiable \c Cmp 's addresses |
| 177 | Cmp** p_cmp_mod ; |
| 178 | |
| 179 | int n_tenseur ; ///< Number of \c Tenseur 's |
| 180 | /// Array (size \c n_tenseur ) of the \c Tenseur 's addresses |
| 181 | const Tenseur** p_tenseur ; |
| 182 | |
| 183 | int n_tenseur_mod ; ///< Number of modifiable \c Tenseur 's |
| 184 | /// Array (size \c n_tenseur_mod ) of the modifiable \c Tenseur 's addresses |
| 185 | Tenseur** p_tenseur_mod ; |
| 186 | |
| 187 | int n_map ; ///< Number of \c Map 's |
| 188 | /// Array (size \c n_map ) of the \c Map 's addresses |
| 189 | const Map** p_map ; |
| 190 | |
| 191 | int n_mtbl_cf ; ///< Number of \c Mtbl_cf 's |
| 192 | /// Array (size \c n_mtbl_cf ) of the \c Mtbl_cf 's addresses |
| 193 | const Mtbl_cf** p_mtbl_cf ; |
| 194 | |
| 195 | int n_scalar ; ///< Number of \c Scalar 's |
| 196 | /// Array (size \c n_scalar ) of the \c Scalar 's addresses |
| 197 | const Scalar** p_scalar ; |
| 198 | |
| 199 | int n_scalar_mod ; ///< Number of modifiable \c Scalar 's |
| 200 | /// Array (size \c n_scalar_mod ) of the modifiable \c Scalar 's addresses |
| 201 | Scalar** p_scalar_mod ; |
| 202 | |
| 203 | int n_tensor ; ///< Number of \c Tensor 's |
| 204 | /// Array (size \c n_tensor ) of the \c Tensor 's addresses |
| 205 | const Tensor** p_tensor ; |
| 206 | |
| 207 | int n_tensor_mod ; ///< Number of modifiable \c Tensor 's |
| 208 | /// Array (size \c n_tensor_mod ) of the modifiable \c Tensor 's addresses |
| 209 | Tensor** p_tensor_mod ; |
| 210 | |
| 211 | int n_etoile ; ///< Number of \c Etoile 's |
| 212 | /// Array (size \c n_etoile ) of the \c Etoile 's addresses |
| 213 | const Etoile** p_etoile ; |
| 214 | |
| 215 | int n_star ; ///< Number of \c Star 's |
| 216 | /// Array (size \c n_star ) of the \c Star 's addresses |
| 217 | const Star** p_star ; |
| 218 | |
| 219 | // Constructors - Destructor |
| 220 | // ------------------------- |
| 221 | |
| 222 | public: |
| 223 | Param() ; ///< Default constructor is the only constructor |
| 224 | |
| 225 | private: |
| 226 | /** Copy constructor (private and not implemented to make \c Param |
| 227 | * a non-copyable class) |
| 228 | */ |
| 229 | Param(const Param& ) ; |
| 230 | |
| 231 | public: |
| 232 | ~Param() ; ///< Destructor |
| 233 | |
| 234 | /** Deletes all the objects stored as modifiables, |
| 235 | * i.e. all quantities with the suffix \c mod . |
| 236 | */ |
| 237 | void clean_all() ; |
| 238 | |
| 239 | |
| 240 | |
| 241 | // Assignment |
| 242 | // ----------- |
| 243 | private: |
| 244 | /** Assignment operator (private and not implemented to make |
| 245 | * \c Param a non-copyable class) |
| 246 | */ |
| 247 | void operator=(const Param& ) ; |
| 248 | |
| 249 | |
| 250 | // Addition/Extraction of one element |
| 251 | // ---------------------------------- |
| 252 | public: |
| 253 | |
| 254 | ///Returns the number of stored \c int 's addresses. |
| 255 | int get_n_int() const ; |
| 256 | |
| 257 | /** Adds the address of a new \c int to the list. |
| 258 | * |
| 259 | * @param n [input] \c int the address of which is |
| 260 | * to be stored |
| 261 | * @param position [input] position of the \c int in the list |
| 262 | * of stored \c int addresses (default |
| 263 | * value = 0) |
| 264 | * |
| 265 | */ |
| 266 | void add_int(const int& n, int position = 0) ; |
| 267 | |
| 268 | /** Returns the reference of a \c int stored in the list. |
| 269 | * |
| 270 | * @param position [input] position of the \c int in the list |
| 271 | * of stored \c int addresses (default |
| 272 | * value = 0) |
| 273 | * @return Reference to the \c int the address of |
| 274 | * which is stored at the location \c position in the |
| 275 | * list |
| 276 | */ |
| 277 | const int& get_int(int position = 0) const; |
| 278 | |
| 279 | ///Returns the number of modifiable \c int 's addresses in the list. |
| 280 | int get_n_int_mod() const ; |
| 281 | |
| 282 | /** Adds the address of a new modifiable \c int to the list. |
| 283 | * |
| 284 | * @param n [input] modifiable \c int the address of which is |
| 285 | * to be stored |
| 286 | * @param position [input] position of the modifiable \c int |
| 287 | * in the list of stored modifiable \c int addresses |
| 288 | * (default value = 0) |
| 289 | * |
| 290 | */ |
| 291 | void add_int_mod(int& n, int position = 0) ; |
| 292 | |
| 293 | /** Returns the reference of a modifiable \c int stored in the list. |
| 294 | * |
| 295 | * @param position [input] position of the modifiable \c int |
| 296 | * in the list of stored modifiable \c int addresses |
| 297 | * (default value = 0) |
| 298 | * @return Reference to the modifiable \c int the address of |
| 299 | * which is stored at the location \c position in the |
| 300 | * list |
| 301 | */ |
| 302 | int& get_int_mod(int position = 0) const; |
| 303 | |
| 304 | |
| 305 | ///Returns the number of stored \c double 's addresses. |
| 306 | int get_n_double() const ; |
| 307 | |
| 308 | /** Adds the the address of a new \c double to the list. |
| 309 | * |
| 310 | * @param x [input] \c double the address of which is |
| 311 | * to be stored |
| 312 | * @param position [input] position of the \c double in the list |
| 313 | * of stored \c double addresses (default |
| 314 | * value = 0) |
| 315 | * |
| 316 | */ |
| 317 | void add_double(const double& x, int position = 0) ; |
| 318 | |
| 319 | /** Returns the reference of a \c double stored in the list. |
| 320 | * |
| 321 | * @param position [input] position of the \c double in the list |
| 322 | * of stored \c double addresses (default |
| 323 | * value = 0) |
| 324 | * @return Reference to the \c double the address of |
| 325 | * which is stored at the location \c position in the |
| 326 | * list |
| 327 | */ |
| 328 | const double& get_double(int position = 0) const; |
| 329 | |
| 330 | |
| 331 | ///Returns the number of stored modifiable \c double 's addresses. |
| 332 | int get_n_double_mod() const ; |
| 333 | |
| 334 | /** Adds the address of a new modifiable \c double to the list. |
| 335 | * |
| 336 | * @param x [input] modifiable \c double the address of which is |
| 337 | * to be stored |
| 338 | * @param position [input] position of the modifiable \c double |
| 339 | * in the list of stored modifiable |
| 340 | * \c double addresses (default value = 0) |
| 341 | * |
| 342 | */ |
| 343 | void add_double_mod(double& x, int position = 0) ; |
| 344 | |
| 345 | /** Returns the reference of a stored modifiable \c double . |
| 346 | * |
| 347 | * @param position [input] position of the modifiable \c double |
| 348 | * in the list of stored modifiable |
| 349 | * \c double addresses (default value = 0) |
| 350 | * |
| 351 | * @return Reference to the modifiable \c double the address of |
| 352 | * which is stored at |
| 353 | * the location \c position in the list |
| 354 | */ |
| 355 | double& get_double_mod(int position = 0) const; |
| 356 | |
| 357 | |
| 358 | ///Returns the number of \c Tbl 's addresses in the list. |
| 359 | int get_n_tbl() const ; |
| 360 | |
| 361 | /** Adds the address of a new \c Tbl to the list. |
| 362 | * |
| 363 | * @param ti [input] \c Tbl the address of which is to be stored |
| 364 | * @param position [input] position of the \c Tbl in the list |
| 365 | * of stored \c Tbl addresses (default |
| 366 | * value = 0) |
| 367 | * |
| 368 | */ |
| 369 | void add_tbl(const Tbl& ti, int position = 0) ; |
| 370 | |
| 371 | /** Returns the reference of a \c Tbl stored in the list. |
| 372 | * |
| 373 | * @param position [input] position of the \c Tbl in the list |
| 374 | * of stored \c Tbl addresses (default |
| 375 | * value = 0) |
| 376 | * @return Reference to the \c Tbl the address of which is stored at |
| 377 | * the location \c position in the list |
| 378 | */ |
| 379 | const Tbl& get_tbl(int position = 0) const; |
| 380 | |
| 381 | |
| 382 | ///Returns the number of modifiable \c Tbl 's addresses in the list. |
| 383 | int get_n_tbl_mod() const ; |
| 384 | |
| 385 | /** Adds the address of a new modifiable \c Tbl to the list. |
| 386 | * |
| 387 | * @param ti [input] modifiable \c Tbl the address of which is |
| 388 | * to be stored |
| 389 | * @param position [input] position of the \c Tbl in the list |
| 390 | * of stored modifiable \c Tbl addresses |
| 391 | * (default value = 0) |
| 392 | */ |
| 393 | void add_tbl_mod(Tbl& ti, int position = 0) ; |
| 394 | |
| 395 | /** Returns the reference of a modifiable \c Tbl stored in the list. |
| 396 | * |
| 397 | * @param position [input] position of the \c Tbl in the list |
| 398 | * of stored modifiable \c Tbl addresses |
| 399 | * (default value = 0) |
| 400 | * @return Reference to the modifiable \c Tbl the address of |
| 401 | * which is stored at the location \c position in the |
| 402 | * list |
| 403 | */ |
| 404 | Tbl& get_tbl_mod(int position = 0) const; |
| 405 | |
| 406 | |
| 407 | ///Returns the number of \c Itbl 's addresses in the list. |
| 408 | int get_n_itbl() const ; |
| 409 | |
| 410 | /** Adds the address of a new \c Itbl to the list. |
| 411 | * |
| 412 | * @param ti [input] \c Itbl the address of which is to be stored |
| 413 | * @param position [input] position of the \c Itbl in the list |
| 414 | * of stored \c Itbl addresses (default |
| 415 | * value = 0) |
| 416 | * |
| 417 | */ |
| 418 | void add_itbl(const Itbl& ti, int position = 0) ; |
| 419 | |
| 420 | /** Returns the reference of a \c Itbl stored in the list. |
| 421 | * |
| 422 | * @param position [input] position of the \c Itbl in the list |
| 423 | * of stored \c Itbl addresses (default |
| 424 | * value = 0) |
| 425 | * @return Reference to the \c Itbl the address of which is stored at |
| 426 | * the location \c position in the list |
| 427 | */ |
| 428 | const Itbl& get_itbl(int position = 0) const; |
| 429 | |
| 430 | |
| 431 | ///Returns the number of modifiable \c Itbl 's addresses in the list. |
| 432 | int get_n_itbl_mod() const ; |
| 433 | |
| 434 | /** Adds the address of a new modifiable \c Itbl to the list. |
| 435 | * |
| 436 | * @param ti [input] modifiable \c Itbl the address of which is |
| 437 | * to be stored |
| 438 | * @param position [input] position of the \c Itbl in the list |
| 439 | * of stored modifiable \c Itbl addresses |
| 440 | * (default value = 0) |
| 441 | * |
| 442 | */ |
| 443 | void add_itbl_mod(Itbl& ti, int position = 0) ; |
| 444 | |
| 445 | /** Returns the reference of a stored modifiable \c Itbl . |
| 446 | * |
| 447 | * @param position [input] position of the \c Itbl in the list |
| 448 | * of stored modifiable \c Itbl addresses |
| 449 | * (default value = 0) |
| 450 | * @return Reference to the modifiable \c Itbl the address of |
| 451 | * which is stored at the location \c position |
| 452 | * in the list |
| 453 | */ |
| 454 | Itbl& get_itbl_mod(int position = 0) const; |
| 455 | |
| 456 | ///Returns the number of \c Matrice 's addresses in the list. |
| 457 | int get_n_matrice() const ; |
| 458 | |
| 459 | /** Adds the address of a new \c Matrice to the list. |
| 460 | * |
| 461 | * @param ti [input] \c Matrice the address of which is to be stored |
| 462 | * @param position [input] position of the \c Matrice in the list |
| 463 | * of stored \c Matrice addresses (default |
| 464 | * value = 0) |
| 465 | * |
| 466 | */ |
| 467 | void add_matrice(const Matrice& ti, int position = 0) ; |
| 468 | |
| 469 | /** Returns the reference of a \c Matrice stored in the list. |
| 470 | * |
| 471 | * @param position [input] position of the \c Matrice in the list |
| 472 | * of stored \c Matrice addresses (default |
| 473 | * value = 0) |
| 474 | * @return Reference to the \c Matrice the address of which is stored at |
| 475 | * the location \c position in the list |
| 476 | */ |
| 477 | const Matrice& get_matrice(int position = 0) const; |
| 478 | |
| 479 | |
| 480 | ///Returns the number of modifiable \c Matrice 's addresses in the list. |
| 481 | int get_n_matrice_mod() const ; |
| 482 | |
| 483 | /** Adds the address of a new modifiable \c Matrice to the list. |
| 484 | * |
| 485 | * @param ti [input] modifiable \c Matrice the address of which is |
| 486 | * to be stored |
| 487 | * @param position [input] position of the \c Matrice in the list |
| 488 | * of stored modifiable \c Matrice addresses |
| 489 | * (default value = 0) |
| 490 | */ |
| 491 | void add_matrice_mod(Matrice& ti, int position = 0) ; |
| 492 | |
| 493 | /** Returns the reference of a modifiable \c Matrice stored in the list. |
| 494 | * |
| 495 | * @param position [input] position of the \c Matrice in the list |
| 496 | * of stored modifiable \c Matrice addresses |
| 497 | * (default value = 0) |
| 498 | * @return Reference to the modifiable \c Matrice the address of |
| 499 | * which is stored at the location \c position in the |
| 500 | * list |
| 501 | */ |
| 502 | Matrice& get_matrice_mod(int position = 0) const; |
| 503 | |
| 504 | |
| 505 | ///Returns the number of \c Cmp 's addresses in the list. |
| 506 | int get_n_cmp() const ; |
| 507 | |
| 508 | /** Adds the address of a new \c Cmp to the list. |
| 509 | * |
| 510 | * @param ti [input] \c Cmp the address of which is to be stored |
| 511 | * @param position [input] position of the \c Cmp in the list |
| 512 | * of stored \c Cmp addresses (default |
| 513 | * value = 0) |
| 514 | * |
| 515 | */ |
| 516 | void add_cmp(const Cmp& ti, int position = 0) ; |
| 517 | |
| 518 | /** Returns the reference of a \c Cmp stored in the list. |
| 519 | * |
| 520 | * @param position [input] position of the \c Cmp in the list |
| 521 | * of stored \c Cmp addresses (default |
| 522 | * value = 0) |
| 523 | * @return Reference to the \c Cmp the address of which is stored at |
| 524 | * the location \c position in the list |
| 525 | */ |
| 526 | const Cmp& get_cmp(int position = 0) const; |
| 527 | |
| 528 | |
| 529 | ///Returns the number of modifiable \c Cmp 's addresses in the list. |
| 530 | int get_n_cmp_mod() const ; |
| 531 | |
| 532 | /** Adds the address of a new modifiable \c Cmp to the list. |
| 533 | * |
| 534 | * @param ti [input] modifiable \c Cmp the address of which is |
| 535 | * to be stored |
| 536 | * @param position [input] position of the \c Cmp in the list |
| 537 | * of stored modifiable \c Cmp addresses |
| 538 | * (default value = 0) |
| 539 | */ |
| 540 | void add_cmp_mod(Cmp& ti, int position = 0) ; |
| 541 | |
| 542 | /** Returns the reference of a modifiable \c Cmp stored in the list. |
| 543 | * |
| 544 | * @param position [input] position of the \c Cmp in the list |
| 545 | * of stored modifiable \c Cmp addresses |
| 546 | * (default value = 0) |
| 547 | * @return Reference to the modifiable \c Cmp the address of |
| 548 | * which is stored at the location \c position in the |
| 549 | * list |
| 550 | */ |
| 551 | Cmp& get_cmp_mod(int position = 0) const; |
| 552 | |
| 553 | |
| 554 | ///Returns the number of \c Tenseur 's addresses in the list. |
| 555 | int get_n_tenseur() const ; |
| 556 | |
| 557 | /** Adds the address of a new \c Tenseur to the list. |
| 558 | * |
| 559 | * @param ti [input] \c Tenseur the address of which is to be stored |
| 560 | * @param position [input] position of the \c Tenseur in the list |
| 561 | * of stored \c Tenseur addresses (default |
| 562 | * value = 0) |
| 563 | * |
| 564 | */ |
| 565 | void add_tenseur(const Tenseur& ti, int position = 0) ; |
| 566 | |
| 567 | /** Returns the reference of a \c Tenseur stored in the list. |
| 568 | * |
| 569 | * @param position [input] position of the \c Tenseur in the list |
| 570 | * of stored \c Tenseur addresses (default |
| 571 | * value = 0) |
| 572 | * @return Reference to the \c Tenseur the address of which is stored at |
| 573 | * the location \c position in the list |
| 574 | */ |
| 575 | const Tenseur& get_tenseur(int position = 0) const; |
| 576 | |
| 577 | |
| 578 | ///Returns the number of modifiable \c Tenseur 's addresses in the list. |
| 579 | int get_n_tenseur_mod() const ; |
| 580 | |
| 581 | /** Adds the address of a new modifiable \c Tenseur to the list. |
| 582 | * |
| 583 | * @param ti [input] modifiable \c Tenseur the address of which is |
| 584 | * to be stored |
| 585 | * @param position [input] position of the \c Tenseur in the list |
| 586 | * of stored modifiable \c Tenseur addresses |
| 587 | * (default value = 0) |
| 588 | */ |
| 589 | void add_tenseur_mod(Tenseur& ti, int position = 0) ; |
| 590 | |
| 591 | /** Returns the reference of a modifiable \c Tenseur stored in the list. |
| 592 | * |
| 593 | * @param position [input] position of the \c Tenseur in the list |
| 594 | * of stored modifiable \c Tenseur addresses |
| 595 | * (default value = 0) |
| 596 | * @return Reference to the modifiable \c Tenseur the address of |
| 597 | * which is stored at the location \c position in the |
| 598 | * list |
| 599 | */ |
| 600 | Tenseur& get_tenseur_mod(int position = 0) const; |
| 601 | |
| 602 | ///Returns the number of \c Map 's addresses in the list. |
| 603 | int get_n_map() const ; |
| 604 | |
| 605 | /** Adds the address of a new \c Map to the list. |
| 606 | * |
| 607 | * @param mi [input] \c Map the address of which is to be stored |
| 608 | * @param position [input] position of the \c Map in the list |
| 609 | * of stored \c Map addresses (default |
| 610 | * value = 0) |
| 611 | * |
| 612 | */ |
| 613 | void add_map(const Map& mi, int position = 0) ; |
| 614 | |
| 615 | /** Returns the reference of a \c Map stored in the list. |
| 616 | * |
| 617 | * @param position [input] position of the \c Map in the list |
| 618 | * of stored \c Map addresses (default |
| 619 | * value = 0) |
| 620 | * @return Reference to the \c Map the address of which is stored at |
| 621 | * the location \c position in the list |
| 622 | */ |
| 623 | const Map& get_map(int position = 0) const; |
| 624 | |
| 625 | ///Returns the number of \c Mtbl_cf 's addresses in the list. |
| 626 | int get_n_mtbl_cf() const ; |
| 627 | |
| 628 | /** Adds the address of a new \c Mtbl_cf to the list. |
| 629 | * |
| 630 | * @param mi [input] \c Mtbl_cf the address of which is to be stored |
| 631 | * @param position [input] position of the \c Mtbl_cf in the list |
| 632 | * of stored \c Mtbl_cf addresses (default |
| 633 | * value = 0) |
| 634 | * |
| 635 | */ |
| 636 | void add_mtbl_cf(const Mtbl_cf& mi, int position = 0) ; |
| 637 | |
| 638 | /** Returns the reference of a \c Mtbl_cf stored in the list. |
| 639 | * |
| 640 | * @param position [input] position of the \c Mtbl_cf in the list |
| 641 | * of stored \c Mtbl_cf addresses (default |
| 642 | * value = 0) |
| 643 | * @return Reference to the \c Mtbl_cf the address of which is stored at |
| 644 | * the location \c position in the list |
| 645 | */ |
| 646 | const Mtbl_cf& get_mtbl_cf(int position = 0) const; |
| 647 | |
| 648 | ///Returns the number of \c Scalar 's addresses in the list. |
| 649 | int get_n_scalar() const ; |
| 650 | |
| 651 | /** Adds the address of a new \c Scalar to the list. |
| 652 | * |
| 653 | * @param ti [input] \c Scalar the address of which is to be stored |
| 654 | * @param position [input] position of the \c Scalar in the list |
| 655 | * of stored \c Scalar addresses (default |
| 656 | * value = 0) |
| 657 | * |
| 658 | */ |
| 659 | void add_scalar(const Scalar& ti, int position = 0) ; |
| 660 | |
| 661 | /** Returns the reference of a \c Scalar stored in the list. |
| 662 | * |
| 663 | * @param position [input] position of the \c Scalar in the list |
| 664 | * of stored \c Scalar addresses (default |
| 665 | * value = 0) |
| 666 | * @return Reference to the \c Scalar the address of which is stored at |
| 667 | * the location \c position in the list |
| 668 | */ |
| 669 | const Scalar& get_scalar(int position = 0) const; |
| 670 | |
| 671 | |
| 672 | ///Returns the number of modifiable \c Scalar 's addresses in the list. |
| 673 | int get_n_scalar_mod() const ; |
| 674 | |
| 675 | /** Adds the address of a new modifiable \c Scalar to the list. |
| 676 | * |
| 677 | * @param ti [input] modifiable \c Scalar the address of which is |
| 678 | * to be stored |
| 679 | * @param position [input] position of the \c Scalar in the list |
| 680 | * of stored modifiable \c Scalar addresses |
| 681 | * (default value = 0) |
| 682 | */ |
| 683 | void add_scalar_mod(Scalar& ti, int position = 0) ; |
| 684 | |
| 685 | /** Returns the reference of a modifiable \c Scalar stored in the list. |
| 686 | * |
| 687 | * @param position [input] position of the \c Scalar in the list |
| 688 | * of stored modifiable \c Scalar addresses |
| 689 | * (default value = 0) |
| 690 | * @return Reference to the modifiable \c Scalar the address of |
| 691 | * which is stored at the location \c position in the |
| 692 | * list |
| 693 | */ |
| 694 | Scalar& get_scalar_mod(int position = 0) const; |
| 695 | |
| 696 | |
| 697 | ///Returns the number of \c Tensor 's addresses in the list. |
| 698 | int get_n_tensor() const ; |
| 699 | |
| 700 | /** Adds the address of a new \c Tensor to the list. |
| 701 | * |
| 702 | * @param ti [input] \c Tensor the address of which is to be stored |
| 703 | * @param position [input] position of the \c Tensor in the list |
| 704 | * of stored \c Tensor addresses (default |
| 705 | * value = 0) |
| 706 | * |
| 707 | */ |
| 708 | void add_tensor(const Tensor& ti, int position = 0) ; |
| 709 | |
| 710 | /** Returns the reference of a \c Tensor stored in the list. |
| 711 | * |
| 712 | * @param position [input] position of the \c Tensor in the list |
| 713 | * of stored \c Tensor addresses (default |
| 714 | * value = 0) |
| 715 | * @return Reference to the \c Tensor the address of which is stored at |
| 716 | * the location \c position in the list |
| 717 | */ |
| 718 | const Tensor& get_tensor(int position = 0) const; |
| 719 | |
| 720 | |
| 721 | ///Returns the number of modifiable \c Tensor 's addresses in the list. |
| 722 | int get_n_tensor_mod() const ; |
| 723 | |
| 724 | /** Adds the address of a new modifiable \c Tensor to the list. |
| 725 | * |
| 726 | * @param ti [input] modifiable \c Tensor the address of which is |
| 727 | * to be stored |
| 728 | * @param position [input] position of the \c Tensor in the list |
| 729 | * of stored modifiable \c Tensor addresses |
| 730 | * (default value = 0) |
| 731 | */ |
| 732 | void add_tensor_mod(Tensor& ti, int position = 0) ; |
| 733 | |
| 734 | /** Returns the reference of a modifiable \c Tensor stored in the list. |
| 735 | * |
| 736 | * @param position [input] position of the \c Tensor in the list |
| 737 | * of stored modifiable \c Tensor addresses |
| 738 | * (default value = 0) |
| 739 | * @return Reference to the modifiable \c Tensor the address of |
| 740 | * which is stored at the location \c position in the |
| 741 | * list |
| 742 | */ |
| 743 | Tensor& get_tensor_mod(int position = 0) const; |
| 744 | |
| 745 | ///Returns the number of \c Etoile 's addresses in the list. |
| 746 | int get_n_etoile() const ; |
| 747 | |
| 748 | /** Adds the address of a new \c Etoile to the list. |
| 749 | * |
| 750 | * @param mi [input] \c Etoile the address of which is to be stored |
| 751 | * @param position [input] position of the \c Etoile in the list |
| 752 | * of stored \c Etoile addresses (default |
| 753 | * value = 0) |
| 754 | * |
| 755 | */ |
| 756 | void add_etoile(const Etoile& eti, int position = 0) ; |
| 757 | |
| 758 | /** Returns the reference of a \c Etoile stored in the list. |
| 759 | * |
| 760 | * @param position [input] position of the \c Etoile in the list |
| 761 | * of stored \c Etoile addresses (default |
| 762 | * value = 0) |
| 763 | * @return Reference to the \c Etoile the address of which is stored at |
| 764 | * the location \c position in the list |
| 765 | */ |
| 766 | const Etoile& get_etoile(int position = 0) const; |
| 767 | |
| 768 | ///Returns the number of \c Star 's addresses in the list. |
| 769 | int get_n_star() const ; |
| 770 | |
| 771 | /** Adds the address of a new \c Star to the list. |
| 772 | * |
| 773 | * @param mi [input] \c Star the address of which is to be stored |
| 774 | * @param position [input] position of the \c Star in the list |
| 775 | * of stored \c Etoile addresses (default |
| 776 | * value = 0) |
| 777 | * |
| 778 | */ |
| 779 | void add_star(const Star& eti, int position = 0) ; |
| 780 | |
| 781 | /** Returns the reference of a \c Star stored in the list. |
| 782 | * |
| 783 | * @param position [input] position of the \c Star in the list |
| 784 | * of stored \c Star addresses (default |
| 785 | * value = 0) |
| 786 | * @return Reference to the \c Star the address of which is stored at |
| 787 | * the location \c position in the list |
| 788 | */ |
| 789 | const Star& get_star(int position = 0) const; |
| 790 | |
| 791 | }; |
| 792 | |
| 793 | } |
| 794 | #endif |