16 template<
typename T,
typename K>
47 template <
class M,
class H>
50 template <
class M,
class H>
67 template <
typename T,
typename K>
82 template <
typename T,
typename K>
95 template <
typename T,
typename K>
108 template <
typename T,
typename K>
125 template <
typename T,
typename K>
128 proj1D->set_value_list_1D(values1,length1);
129 proj1D->set_xcoord_list(values2,length2);
130 proj1D->set_ptr_list_1D(values3,length3);
152 template <
typename T,
typename K>
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;}
174 for (; countdown_2 >= 1; countdown_2--){
176 key2 = b>=coo2->
v1 ? (b<=coo2->
v2 ? true :
false) :
false;
178 return *(ptt2)+b-coo2->
v1;
Definition: ArrayPrs.hpp:19
void set_ptr_list_2D(K *, int)
acc (2D) array setup
Definition: DTGrid2D.hpp:109
void set_projection1D(K *, K *, K *, int, int, int)
proj2D setup
Definition: DTGrid2D.hpp:126
void set_ycoord_list(K *, int)
yCoord array setup
Definition: DTGrid2D.hpp:96
int Length_of_Ptr_List_2D
Definition: DTGrid2D.hpp:31
void getVoxelyz(T *, int, int, int, typename ArrayPrs< K >::PairArray *)
Definition: DTGrid3Dex.hpp:73
Definition: DTGrid3D.hpp:65
int Length_of_Ycoord_List
Definition: DTGrid2D.hpp:30
Define the array for storing pairs of indices.
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 > * Value_List_2D
Definition: DTGrid2D.hpp:23
Definition: DTGrid1D.hpp:13
Definition: ArrayPtr.hpp:20
Define the 1D DT-Grid class and group its functions.
ArrayPtr< T, K > * Ptr_List_2D
Definition: DTGrid2D.hpp:25
Definition: ArrayPrs.hpp:42
int Length_of_Value_List_2D
Definition: DTGrid2D.hpp:29
K v1
Definition: ArrayPrs.hpp:44
void set_value_list_2D(K *, int)
DTGrid2D 'value' array setup.
Definition: DTGrid2D.hpp:83
Define arrays of regular type used in any of the DT-Grid layers.
Define the array for storing pointers into ArrayPrs.
void Reset_pointers_2D(void)
~DTGrid2D()
DTGrid3D destructor.
Definition: DTGrid2D.hpp:68
Definition: DTGrid2D.hpp:17
K v2
index into the icoord array (min connected component)
Definition: ArrayPrs.hpp:45
DTGrid1D< T, K > * proj1D
Definition: DTGrid2D.hpp:27
ArrayPrs< K > * Ycoord_List
Definition: DTGrid2D.hpp:24