RNifti
Fast R and C++ Access to NIfTI Images
|
Inner class representing a single element in the data blob. More...
#include <NiftiImage.h>
Public Member Functions | |
Element (const NiftiImageData &parent, void *ptr=NULL) | |
Primary constructor. More... | |
template<typename SourceType > | |
Element & | operator= (const SourceType &value) |
Copy assignment operator. More... | |
Element & | operator= (const Element &other) |
Copy assignment operator. More... | |
template<typename TargetType > | |
operator TargetType () const | |
Type-cast operator, suitable for implicit conversion to basic numeric types. | |
template<typename ElementType > | |
operator std::complex< ElementType > () const | |
operator Rcomplex () const | |
Rcomplex type-cast operator, allowing data to be copied straight to a CPLXSXP | |
operator rgba32_t () const | |
Inner class representing a single element in the data blob.
|
inline |
Primary constructor.
parent | A reference to the parent object |
ptr | An opaque pointer to the element. If NULL , the start of the data blob encapsulated by the parent will be used |
Copy assignment operator.
other | Another data element |
Element& RNifti::NiftiImageData::Element::operator= | ( | const SourceType & | value | ) |
Copy assignment operator.
value | The value to assign. Any basic numeric type supported by NIfTI-1 is allowed, but int is used as an intermediate type for all integers, so values unrepresentable in a signed 32-bit integer may overflow |