This is a basic accessor class, which allows for accessing array data in the type specified by the template.
More...
#include <accessors.h>
Inherited by npl::LanczosInterpNDView< T >, npl::LinInterpNDView< T >, npl::NNInterpNDView< T >, and npl::Vector3DConstView< T >.
|
template<typename U > |
static T | castgetStatic (void *ptr) |
| This is a wrapper function that will be called to safely cast from the underlying type. More...
|
|
|
std::shared_ptr< const NDArray > | parent |
| Where to get the dat a from. Also the shared_ptr prevents dealloc. More...
|
|
T(* | castget )(void *ptr) |
| Function pointer to the correct function for casting from the underlying type. More...
|
|
template<typename T>
class npl::NDConstView< T >
This is a basic accessor class, which allows for accessing array data in the type specified by the template.
- Template Parameters
-
T | Value to return on access |
Definition at line 324 of file accessors.h.
template<typename T>
template<typename U >
This is a wrapper function that will be called to safely cast from the underlying type.
- Template Parameters
-
U | Underlying type of pixel, figured out in the constructor |
- Parameters
-
ptr | Pointer to memory where the pixel is. |
- Returns
- Correctly cast value
Definition at line 467 of file accessors.h.
Gets value at array index and then casts to T.
- Parameters
-
- Returns
- value
Definition at line 414 of file accessors.h.
Gets value at array index and then casts to T.
- Parameters
-
len | length of index array |
index | n-d index to access |
- Returns
- value
Definition at line 430 of file accessors.h.
Gets value linear position in array, then casts to T.
- Returns
- value
Definition at line 399 of file accessors.h.
Gets value at array index and then casts to T.
- Parameters
-
- Returns
- value
Definition at line 445 of file accessors.h.
Function pointer to the correct function for casting from the underlying type.
- Parameters
-
ptr | location in memory where the pixel is stored |
Definition at line 483 of file accessors.h.
Where to get the dat a from. Also the shared_ptr prevents dealloc.
Definition at line 470 of file accessors.h.
The documentation for this class was generated from the following file: