JEMRIS  2.8.1
open-source MRI simulations
List of all members | Public Member Functions | Protected Attributes
NDData< T > Class Template Reference

Simple nd-data structure. More...

#include <NDData.h>

+ Inheritance diagram for NDData< T >:

Public Member Functions

 NDData ()
 Default constructor.
 
 NDData (const size_t n0)
 1D-data (convenience constructor) More...
 
 NDData (const size_t n0, const size_t n1)
 2D-data (convenience constructor) More...
 
 NDData (const size_t n0, const size_t n1, const size_t n2)
 3D-data (convenience constructor) More...
 
 NDData (const size_t n0, const size_t n1, const size_t n2, const size_t n3)
 4D-data (convenience constructor) More...
 
 NDData (const std::vector< hsize_t > &dims)
 ND-Data. More...
 
 NDData (const std::vector< size_t > &dims)
 ND-Data. More...
 
 NDData (const NDData &data)
 Copy constructor. More...
 
NDDataoperator= (const NDData &data)
 Assignement. More...
 
size_t Dim (const size_t n=0) const
 
std::vector< size_t > Dims () const
 
size_t Size () const
 
size_t NDim () const
 
std::ostream & Print (std::ostream &os) const
 
bool Empty () const
 
T & operator[] (const size_t p)
 
operator[] (const size_t p) const
 
T & operator() (const size_t p)
 
operator() (const size_t p) const
 
T & operator() (const size_t n0, const size_t n1)
 
operator() (const size_t n0, const size_t n1) const
 
T & operator() (const size_t n0, const size_t n1, const size_t n2)
 
operator() (const size_t n0, const size_t n1, const size_t n2) const
 
const T * Ptr (const size_t n=0) const
 
T * Ptr (const size_t n=0)
 
std::vector< T > Data () const
 

Protected Attributes

std::vector< size_t > _dims
 
std::vector< T > _data
 

Detailed Description

template<class T>
class NDData< T >

Simple nd-data structure.

Constructor & Destructor Documentation

template<class T>
NDData< T >::NDData ( const size_t  n0)
inline

1D-data (convenience constructor)

Parameters
n0Vector length
template<class T>
NDData< T >::NDData ( const size_t  n0,
const size_t  n1 
)
inline

2D-data (convenience constructor)

Parameters
n0First side
n1Second side
template<class T>
NDData< T >::NDData ( const size_t  n0,
const size_t  n1,
const size_t  n2 
)
inline

3D-data (convenience constructor)

Parameters
n0First side
n1Second side
n2Third side
template<class T>
NDData< T >::NDData ( const size_t  n0,
const size_t  n1,
const size_t  n2,
const size_t  n3 
)
inline

4D-data (convenience constructor)

Parameters
n0First side
n1Second side
n2Third side
template<class T>
NDData< T >::NDData ( const std::vector< hsize_t > &  dims)
inline

ND-Data.

Parameters
dimsSide lengths (HDF5 hsize_t)
template<class T>
NDData< T >::NDData ( const std::vector< size_t > &  dims)
inline

ND-Data.

Parameters
dimsSide lengths
template<class T>
NDData< T >::NDData ( const NDData< T > &  data)
inline

Copy constructor.

Parameters
dataTo copy

Member Function Documentation

template<class T>
NDData& NDData< T >::operator= ( const NDData< T > &  data)
inline

Assignement.

Parameters
dataTo copy

Member Data Documentation

template<class T>
std::vector<T> NDData< T >::_data
protected

actual data

template<class T>
std::vector<size_t> NDData< T >::_dims
protected

dimensions


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

-- last change 17.06.2016 | Tony Stoecker | Imprint --