Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TNDArrayRef< T > Class Template Reference

template<typename T>
class TNDArrayRef< T >

gives access to a sub-dimension, e.g.

arr[0][1] in above three-dimensional example, up to an element with conversion operator to double: double value = arr[0][1][2];

Definition at line 91 of file TNDArray.h.

Public Member Functions

 TNDArrayRef (const T *data, const Long64_t *sizes)
 
 operator T () const
 
TNDArrayRef< T > operator[] (Int_t idx) const
 

Private Member Functions

 ClassDefNV (TNDArrayRef, 0)
 Subdimension of a TNDArray.
 

Private Attributes

const T * fData
 Pointer into TNDArray's fData.
 
const Long64_tfSizes
 Pointer into TNDArray's fSizes.
 

#include <TNDArray.h>

Constructor & Destructor Documentation

◆ TNDArrayRef()

template<typename T >
TNDArrayRef< T >::TNDArrayRef ( const T *  data,
const Long64_t sizes 
)
inline

Definition at line 93 of file TNDArray.h.

Member Function Documentation

◆ ClassDefNV()

template<typename T >
TNDArrayRef< T >::ClassDefNV ( TNDArrayRef< T >  ,
 
)
private

Subdimension of a TNDArray.

◆ operator T()

template<typename T >
TNDArrayRef< T >::operator T ( ) const
inline

Definition at line 101 of file TNDArray.h.

◆ operator[]()

template<typename T >
TNDArrayRef< T > TNDArrayRef< T >::operator[] ( Int_t  idx) const
inline

Definition at line 96 of file TNDArray.h.

Member Data Documentation

◆ fData

template<typename T >
const T* TNDArrayRef< T >::fData
private

Pointer into TNDArray's fData.

Definition at line 108 of file TNDArray.h.

◆ fSizes

template<typename T >
const Long64_t* TNDArrayRef< T >::fSizes
private

Pointer into TNDArray's fSizes.

Definition at line 109 of file TNDArray.h.

  • hist/hist/inc/TNDArray.h