|
KADATH
|
Class for storing the dimensions of an array. More...
#include <dim_array.hpp>
Public Types | |
| using | Data_type = Memory_mapped_array< int > |
| Sylvain's stuff. More... | |
| using | size_type = int |
| Sylvain's stuff. More... | |
Public Member Functions | |
| Dim_array (int dim) | |
| Standard constructor. More... | |
| Dim_array (const Dim_array &so) | |
| Copy constructor. More... | |
| Dim_array (FILE *) | |
| Constructor from a file (previously generated by the save member) More... | |
| int & | set (int i) |
| Read/write of the size of a given dimension. More... | |
| int | operator() (int i) const |
| Read only of the size of a given dimension. More... | |
| int | get_ndim () const |
| Returns the number of dimensions. More... | |
| void | operator= (const Dim_array &so) |
Assignement to annother Dim_array. More... | |
| void | swap (Dim_array &so) |
| Sylvain's stuff. More... | |
| void | save (FILE *) const |
| Save function. More... | |
| Dim_array (Dim_array &&so) | |
| Move constructor. More... | |
| Dim_array & | operator= (Dim_array &&so) |
| Operator =. More... | |
Class for storing the dimensions of an array.
It simply consists of a list of integers, being the size of a given Array, in each dimension.
Definition at line 34 of file dim_array.hpp.
| using Kadath::Dim_array::Data_type = Memory_mapped_array<int> |
Sylvain's stuff.
Definition at line 37 of file dim_array.hpp.
| using Kadath::Dim_array::size_type = int |
Sylvain's stuff.
Definition at line 39 of file dim_array.hpp.
|
inlineexplicit |
Standard constructor.
| dim | [input] number of dimensions. The sizes are not initialized. |
Definition at line 43 of file dim_array.hpp.
|
inline |
Copy constructor.
| so | [input] the input Dim_array |
Definition at line 47 of file dim_array.hpp.
| Kadath::Dim_array::Dim_array | ( | FILE * | fd | ) |
Constructor from a file (previously generated by the save member)
Definition at line 24 of file dim_array.cpp.
|
inline |
Move constructor.
Definition at line 73 of file dim_array.hpp.
|
inline |
Returns the number of dimensions.
Definition at line 63 of file dim_array.hpp.
|
inline |
Read only of the size of a given dimension.
| i | [input] dimension. |
Definition at line 59 of file dim_array.hpp.
|
inline |
Assignement to annother Dim_array.
Definition at line 67 of file dim_array.hpp.
Operator =.
Definition at line 75 of file dim_array.hpp.
| void Kadath::Dim_array::save | ( | FILE * | fd | ) | const |
Save function.
Definition at line 32 of file dim_array.cpp.
|
inline |
Read/write of the size of a given dimension.
| i | [input] dimension. |
Definition at line 54 of file dim_array.hpp.
|
inline |
Sylvain's stuff.
Definition at line 70 of file dim_array.hpp.