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