Logo ROOT   6.12/07
Reference Guide
List of all members | Public Types | Public Member Functions | List of all members
ROOT::Experimental::Hist::TCoordArray< DIMENSIONS > Struct Template Reference

template<int DIMENSIONS>
struct ROOT::Experimental::Hist::TCoordArray< DIMENSIONS >

Definition at line 26 of file THistUtils.hxx.

Public Types

using Base_t = std::array< double, DIMENSIONS >
 

Public Member Functions

 TCoordArray ()=default
 Default construction. More...
 
template<class... ELEMENTS, class = typename std::enable_if<sizeof...(ELEMENTS) + 1 == DIMENSIONS>::type>
 TCoordArray (double x, ELEMENTS...el)
 Construction with one double per DIMENSION. More...
 
template<class T , class... ELEMENTS, class = typename std::enable_if<sizeof...(ELEMENTS) + 1 != DIMENSIONS>::type>
 TCoordArray (T, ELEMENTS...)
 Fallback constructor, invoked if the one above fails because of the wrong number of arguments / coordinates. More...
 
 TCoordArray (double(&arr)[DIMENSIONS])
 Construction from a C-style array. More...
 

#include <ROOT/THistUtils.hxx>

Inheritance diagram for ROOT::Experimental::Hist::TCoordArray< DIMENSIONS >:
[legend]

Member Typedef Documentation

◆ Base_t

template<int DIMENSIONS>
using ROOT::Experimental::Hist::TCoordArray< DIMENSIONS >::Base_t = std::array<double, DIMENSIONS>

Definition at line 27 of file THistUtils.hxx.

Constructor & Destructor Documentation

◆ TCoordArray() [1/4]

template<int DIMENSIONS>
ROOT::Experimental::Hist::TCoordArray< DIMENSIONS >::TCoordArray ( )
default

Default construction.

◆ TCoordArray() [2/4]

template<int DIMENSIONS>
template<class... ELEMENTS, class = typename std::enable_if<sizeof...(ELEMENTS) + 1 == DIMENSIONS>::type>
ROOT::Experimental::Hist::TCoordArray< DIMENSIONS >::TCoordArray ( double  x,
ELEMENTS...  el 
)
inline

Construction with one double per DIMENSION.

Definition at line 34 of file THistUtils.hxx.

◆ TCoordArray() [3/4]

template<int DIMENSIONS>
template<class T , class... ELEMENTS, class = typename std::enable_if<sizeof...(ELEMENTS) + 1 != DIMENSIONS>::type>
ROOT::Experimental::Hist::TCoordArray< DIMENSIONS >::TCoordArray ( ,
ELEMENTS...   
)
inline

Fallback constructor, invoked if the one above fails because of the wrong number of arguments / coordinates.

Definition at line 39 of file THistUtils.hxx.

◆ TCoordArray() [4/4]

template<int DIMENSIONS>
ROOT::Experimental::Hist::TCoordArray< DIMENSIONS >::TCoordArray ( double(&)  arr[DIMENSIONS])
inline

Construction from a C-style array.

Definition at line 44 of file THistUtils.hxx.

Collaboration diagram for ROOT::Experimental::Hist::TCoordArray< DIMENSIONS >:
[legend]

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