|
KADATH
|
Parameter storage. More...
#include <param.hpp>
Public Member Functions | |
| Param () | |
| Default constructor is the only constructor. More... | |
| ~Param () | |
| Destructor. More... | |
| int | get_n_int () const |
Returns the number of stored int 's addresses. More... | |
| void | add_int (int n, int position=0) |
Adds the address of a new int to the list. More... | |
| const int & | get_int (int position=0) const |
Returns the reference of a int stored in the list. More... | |
| int | get_n_int_mod () const |
Returns the number of modifiable int 's addresses in the list. More... | |
| int | get_n_double () const |
Returns the number of stored double 's addresses. More... | |
| void | add_double (double x, int position=0) |
Adds the the address of a new double to the list. More... | |
| const double & | get_double (int position=0) const |
Returns the reference of a double stored in the list. More... | |
Private Member Functions | |
| Param (const Param &) | |
Copy constructor (private and not implemented to make Param a non-copyable class) More... | |
| void | operator= (const Param &) |
Assignment operator (private and not implemented to make Param a non-copyable class) More... | |
Private Attributes | |
| int | n_int |
Number of int 's (integers). More... | |
| int * | p_int |
Array (size n_int ) of the int 's addresses. More... | |
| int | n_double |
Number of double 's (double precis. More... | |
| double * | p_double |
Array (size n_double ) of the double 's addresses. More... | |
Parameter storage.
This class is intended to store addresses of various Kadath objects to pass them as parameters in some subroutines.
| Kadath::Param::Param | ( | ) |
|
private |
Copy constructor (private and not implemented to make Param a non-copyable class)
| Kadath::Param::~Param | ( | ) |
| void Kadath::Param::add_double | ( | double | x, |
| int | position = 0 |
||
| ) |
| void Kadath::Param::add_int | ( | int | n, |
| int | position = 0 |
||
| ) |
| const double & Kadath::Param::get_double | ( | int | position = 0 | ) | const |
Returns the reference of a double stored in the list.
| position | [input] position of the double in the list of stored double addresses (default value = 0) |
double the address of which is stored at the location position in the list | const int & Kadath::Param::get_int | ( | int | position = 0 | ) | const |
| int Kadath::Param::get_n_double | ( | ) | const |
| int Kadath::Param::get_n_int | ( | ) | const |
| int Kadath::Param::get_n_int_mod | ( | ) | const |
Returns the number of modifiable int 's addresses in the list.
|
private |
Assignment operator (private and not implemented to make Param a non-copyable class)
|
private |
|
private |
|
private |
|
private |