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>
86 Length_of_Value_List_2D = length;
95 template <
typename T,
typename K>
99 Length_of_Ycoord_List = length;
108 template <
typename T,
typename K>
112 Length_of_Ptr_List_2D = length;
125 template <
typename T,
typename K>
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;
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: ArrayPrs.hpp:42
K v2
index into the icoord array (min connected component)
Definition: ArrayPrs.hpp:45
K v1
Definition: ArrayPrs.hpp:44
Definition: ArrayPrs.hpp:19
void Set_Pair_Array_Values(K *, int)
Setup the array that stores the complete icoord values.
Definition: ArrayPrs.hpp:74
Definition: ArrayPtr.hpp:20
void Set_Pointer_Array_Values(typename ArrayPrs< K >::PairArray *, K *, int, int)
Setup the array that stores the IndexPair values.
Definition: ArrayPtr.hpp:108
Definition: DTGrid1D.hpp:13
void set_value_list_1D(K *, int)
DTGrid1D 'value' array setup.
Definition: DTGrid1D.hpp:82
Definition: DTGrid2D.hpp:17
~DTGrid2D()
DTGrid3D destructor.
Definition: DTGrid2D.hpp:68
void set_projection1D(K *, K *, K *, int, int, int)
proj2D setup
Definition: DTGrid2D.hpp:126
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
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
Definition: DTGrid3D.hpp:65
Definition: DTGrid3Dex.hpp:73