RNifti
Fast R and C++ Access to NIfTI Images
Public Member Functions | List of all members
RNifti::NiftiImageData::ElementProxy Struct Reference

Inner class representing a single element in the data blob. More...

#include <NiftiImage.h>

Public Member Functions

 ElementProxy (const NiftiImageData &parent, void *ptr=NULL)
 Primary constructor. More...
 
template<typename SourceType >
ElementProxyoperator= (const SourceType &value)
 Copy assignment operator. More...
 
template<typename TargetType >
 operator TargetType () const
 Implicit type-cast operator, suitable for implicit conversion to basic numeric types.
 
ElementProxyoperator= (const ElementProxy &other)
 Copy assignment operator. More...
 

Detailed Description

Inner class representing a single element in the data blob.

Constructor & Destructor Documentation

◆ ElementProxy()

RNifti::NiftiImageData::ElementProxy::ElementProxy ( const NiftiImageData parent,
void *  ptr = NULL 
)
inline

Primary constructor.

Parameters
parentA reference to the parent object
ptrAn opaque pointer to the element. If NULL, the start of the data blob encapsulated by the parent will be used

Member Function Documentation

◆ operator=() [1/2]

template<typename SourceType >
ElementProxy& RNifti::NiftiImageData::ElementProxy::operator= ( const SourceType &  value)
inline

Copy assignment operator.

Parameters
valueThe 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
Returns
A reference to the callee

◆ operator=() [2/2]

ElementProxy& RNifti::NiftiImageData::ElementProxy::operator= ( const ElementProxy other)
inline

Copy assignment operator.

Parameters
otherAnother data element
Returns
A reference to the callee

The documentation for this struct was generated from the following file: