SDA (SDA flex)  7.2
Simulation of Diffusional Association
Loading...
Searching...
No Matches
ArrayPtr< T, K > Class Template Reference

#include <ArrayPtr.hpp>

Collaboration diagram for ArrayPtr< T, K >:

Public Member Functions

void Set_Pointer_Array_Values (typename ArrayPrs< K >::PairArray *, K *, int, int)
 Setup the array that stores the IndexPair values.
void Set_Pointer_Array_Values (T *, K *, int, int)
 Setup the array that stores the IndexPair values.
void Reset_Set_Pointer_Array_Values (void)
 Reset the address that the pointer stores.

Private Member Functions

 ~ArrayPtr ()
 ArrayPtr destructor.
 ArrayPtr ()
 ArrayPtr constructor.

Private Attributes

int alloc_size1
int alloc_size2
ArrayPrs< K >::PairArray ** PtrArray
ArrayPrs< K >::PairArray ** PtrArray_Copy
T ** PtrArrayReg
 copy of the original pointer address.
T ** PtrArrayReg_Copy

Friends

template<class M, class H>
class DTGrid2D
template<class M, class H>
class DTGrid3D
class DTGrid3Dex
template<class M, class H>
class DTGrid1D

Constructor & Destructor Documentation

◆ ~ArrayPtr()

template<typename T, typename K>
ArrayPtr< T, K >::~ArrayPtr ( )
private

ArrayPtr destructor.

Warning
Valgrind complains about the parts commented out in this function It does not like the pointers themselves to be deleted!

◆ ArrayPtr()

template<typename T, typename K>
ArrayPtr< T, K >::ArrayPtr ( )
private

ArrayPtr constructor.

input void

Member Function Documentation

◆ Reset_Set_Pointer_Array_Values()

template<typename T, typename K>
void ArrayPtr< T, K >::Reset_Set_Pointer_Array_Values ( void )

Reset the address that the pointer stores.

This function resets the pointer back to its original value! It does not reset the values that the pointer originally points to!

◆ Set_Pointer_Array_Values() [1/2]

template<typename T, typename K>
void ArrayPtr< T, K >::Set_Pointer_Array_Values ( T * pair_array,
K * PtArray,
int I,
int J )

Setup the array that stores the IndexPair values.

This function initializes the array for the 'value' array of (N-1) dimensions of type=IndexPair

Parameters
pair_arraypointer into the icoord array.
PtArraypointer into another array of type ArrayPtr.
Ilength of the pair_array
Jlength of the PtArray
Note
this function is overloaded. See the other function.

◆ Set_Pointer_Array_Values() [2/2]

template<typename T, typename K>
void ArrayPtr< T, K >::Set_Pointer_Array_Values ( typename ArrayPrs< K >::PairArray * pair_array,
K * PtArray,
int I,
int J )

Setup the array that stores the IndexPair values.

This function initializes the array for the 'value' array of (N-1) dimensions of type=IndexPair

Parameters
pair_arraypointer into the icoord array.
PtArraypointer into another array of type ArrayPtr.
Ilength of the pair_array
Jlength of the PtArray
Note
this function is overloaded. See the other function.

◆ DTGrid1D

template<typename T, typename K>
template<class M, class H>
friend class DTGrid1D
friend

◆ DTGrid2D

template<typename T, typename K>
template<class M, class H>
friend class DTGrid2D
friend

◆ DTGrid3D

template<typename T, typename K>
template<class M, class H>
friend class DTGrid3D
friend

◆ DTGrid3Dex

template<typename T, typename K>
friend class DTGrid3Dex
friend

Member Data Documentation

◆ alloc_size1

template<typename T, typename K>
int ArrayPtr< T, K >::alloc_size1
private

◆ alloc_size2

template<typename T, typename K>
int ArrayPtr< T, K >::alloc_size2
private

◆ PtrArray

template<typename T, typename K>
ArrayPrs<K>::PairArray** ArrayPtr< T, K >::PtrArray
private

◆ PtrArray_Copy

template<typename T, typename K>
ArrayPrs<K>::PairArray** ArrayPtr< T, K >::PtrArray_Copy
private

◆ PtrArrayReg

template<typename T, typename K>
T** ArrayPtr< T, K >::PtrArrayReg
private

copy of the original pointer address.

◆ PtrArrayReg_Copy

template<typename T, typename K>
T** ArrayPtr< T, K >::PtrArrayReg_Copy
private

The documentation for this class was generated from the following file:
Imprint/Privacy