16template<
typename T,
typename K>
47 template <
class M,
class H>
50 template <
class M,
class H>
60 typename ArrayPrs <K>::PairArray *
accessxy(
int,
int);
61 void getVoxelyz(T*,
int,
int,
int,
typename ArrayPrs <K>::PairArray *);
67template <
typename T,
typename K>
82template <
typename T,
typename K>
95template <
typename T,
typename K>
108template <
typename T,
typename K>
125template <
typename T,
typename K>
127 proj1D =
new (std::nothrow) DTGrid1D <T,K>;
128 proj1D->set_value_list_1D(values1,length1);
129 proj1D->set_xcoord_list(values2,length2);
130 proj1D->set_ptr_list_1D(values3,length3);
152template <
typename T,
typename K>
156 typename ArrayPrs <K>::PairArray * coord2 =
proj1D->accessx(a);
159 if (coord2 == NULL)
return NULL;
163 K checkpoint_21 = coord2->v2;
164 K checkpoint_22 = (coord2+1)->v2;
165 K countdown_2 = checkpoint_22 - checkpoint_21;
168 if (countdown_2 == 0){
return NULL;}
170 typename ArrayPrs <K>::PairArray ** ptt2 =
Ptr_List_2D->PtrArray+checkpoint_21;
171 typename ArrayPrs <K>::PairArray * coo2 =
Ycoord_List->PArray+checkpoint_21;
174 for (; countdown_2 >= 1; countdown_2--){
176 key2 = b>=coo2->v1 ? (b<=coo2->v2 ? true :
false) :
false;
178 return *(ptt2)+b-coo2->v1;
Define the array for storing pairs of indices.
Define the array for storing pointers into ArrayPrs.
Define arrays of regular type used in any of the DT-Grid layers.
Define the 1D DT-Grid class and group its functions.
Definition DTGrid2D.hpp:17
friend class DTGrid3Dex
Definition DTGrid2D.hpp:49
~DTGrid2D()
DTGrid3D destructor.
Definition DTGrid2D.hpp:68
void set_projection1D(K *, K *, K *, int, int, int)
proj2D setup
Definition DTGrid2D.hpp:126
friend class DTGrid3D
Definition DTGrid2D.hpp:48
ArrayPrs< K >::PairArray * accessxy(int, int)
Reset pointers that temporarily store addresses for random access. Similar to that for DT-Grid3D.
Definition DTGrid2D.hpp:153
ArrayPrs< K > * Ycoord_List
Definition DTGrid2D.hpp:24
ArrayPtr< T, K > * Ptr_List_2D
Definition DTGrid2D.hpp:25
void getVoxelyz(T *, int, int, int, typename ArrayPrs< K >::PairArray *)
DTGrid1D< T, K > * proj1D
Definition DTGrid2D.hpp:27
int Length_of_Ycoord_List
Definition DTGrid2D.hpp:30
int Length_of_Ptr_List_2D
Definition DTGrid2D.hpp:31
void set_ptr_list_2D(K *, int)
acc (2D) array setup
Definition DTGrid2D.hpp:109
friend class DTGrid1D
Definition DTGrid2D.hpp:51
void Reset_pointers_2D(void)
int Length_of_Value_List_2D
Definition DTGrid2D.hpp:29
ArrayPrs< K > * Value_List_2D
Definition DTGrid2D.hpp:23
void set_ycoord_list(K *, int)
yCoord array setup
Definition DTGrid2D.hpp:96
void set_value_list_2D(K *, int)
DTGrid2D 'value' array setup.
Definition DTGrid2D.hpp:83