1 #ifndef CORE_Array3D_CPP
2 #define CORE_Array3D_CPP
18 for (
int i=0;i<mN1;i++) {
19 for (
int j=0;j<mN2;j++) {
20 delete[] mVector[i][j];
29 for (
int i=0;i<mN1;i++) {
30 for (
int j=0;j<mN2;j++) {
31 delete[] mVector[i][j];
38 for (
int i=0;i<n;i++) {
40 for (
int j=0;j<p;j++) mVector[i][j]=
new T[q];
49 if (
this==&src)
return;
53 for (
int i=0;i<n;i++) {
54 for (
int j=0;j<p;j++) {
55 for (
int k=0;k<q;k++) {
56 mVector[i][j][k]=src[i][j][k];
68 for (
int i=0;i<mN1;i++) {
69 for (
int j=0;j<mN2;j++) {
70 for (
int k=0;k<mN3;k++) {
tString toString() const
turn the array into string
Definition: CORE_Array3D.hpp:64
void getSize(int &n, int &p, int &q) const
return the size of the array
Definition: CORE_Array3D.h:120
tString toString() const
return the string associated to the string
Definition: CORE_String.h:150
this class describes an array of arrays
Definition: CORE_Array3D.h:13
this class describes a list
Definition: CORE_List.h:12
void setSize(const int &n, const int &p, const int &q)
set the size of the array
Definition: CORE_Array3D.hpp:27
void copy(const CORE_Array3D< T > &src)
void copy
Definition: CORE_Array3D.hpp:48
#define null
Definition: types.h:13
CORE_Array3D()
build an array of T*
Definition: CORE_Array3D.hpp:9
tString toString() const
return the string associated to the integer
Definition: CORE_Integer.h:142
#define tString
Definition: types.h:36
virtual ~CORE_Array3D()
destroy an array of T*
Definition: CORE_Array3D.hpp:17