SDA (SDA flex)  7.2
Simulation of Diffusional Association
Loading...
Searching...
No Matches
ArrayReg.hpp
Go to the documentation of this file.
1
14#ifndef ARRAYREG_HPP_
15#define ARRAYREG_HPP_
16
17template<typename T>
18class ArrayReg {
20
21public:
22
25
26 template <class M, class H>
27 friend class DTGrid2D;
28 template <class M, class H>
29 friend class DTGrid3D;
30 friend class DTGrid3Dex;
31 template <class M, class H>
32 friend class DTGrid1D;
33
34private:
35
38
39};
40
42template<typename T>
44{
45 delete[] Array;
46 //delete[] Array_Copy;
47}
48
50
56template<typename T>
58
59 Array = new (std::nothrow) T [I];
60 for (int i =0;i<I;i++) {
61 Array[i]=array[i];
62 }
63 Array_Copy = Array;
64}
65
67
73template<typename T>
75 Array_Copy = Array;
76}
77
78
79#endif /* ARRAYREG_HPP_ */
Definition ArrayReg.hpp:18
void Reset_Regular_Array_Values(void)
Reset pointer to the array.
Definition ArrayReg.hpp:74
T * Array
Definition ArrayReg.hpp:36
void Set_Regular_Array_Values(T *, int)
Array setup.
Definition ArrayReg.hpp:57
T * Array_Copy
Definition ArrayReg.hpp:37
~ArrayReg()
ArrayReg destructor.
Definition ArrayReg.hpp:43
Definition DTGrid1D.hpp:13
Definition DTGrid2D.hpp:17
Definition DTGrid3D.hpp:65
int i
Definition DTGrid3D.hpp:113
Definition DTGrid3Dex.hpp:73
Imprint/Privacy