SDA (SDA flex)  7.2
Simulation of Diffusional Association
ArrayReg.hpp
Go to the documentation of this file.
1 
14 #ifndef ARRAYREG_HPP_
15 #define ARRAYREG_HPP_
16 
17 template<typename T>
18 class ArrayReg {
20 
21 public:
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 
34 private:
35 
36  T *Array;
38 
39 };
40 
42 template<typename T>
44 {
45  delete[] Array;
46  //delete[] Array_Copy;
47 }
48 
50 
56 template<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 
73 template<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
Definition: DTGrid3Dex.hpp:73
Imprint/Privacy