Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Hist::RCoordArray< DIMENSIONS > Struct Template Reference

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

Definition at line 31 of file RHistUtils.hxx.

Public Types

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

Public Member Functions

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

#include <ROOT/RHistUtils.hxx>

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

Member Typedef Documentation

◆ Base_t

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

Definition at line 32 of file RHistUtils.hxx.

Constructor & Destructor Documentation

◆ RCoordArray() [1/5]

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

Default construction.

◆ RCoordArray() [2/5]

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

Construction with one double per DIMENSION.

Definition at line 39 of file RHistUtils.hxx.

◆ RCoordArray() [3/5]

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

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

Definition at line 44 of file RHistUtils.hxx.

◆ RCoordArray() [4/5]

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

Construction from a C-style array.

Definition at line 49 of file RHistUtils.hxx.

◆ RCoordArray() [5/5]

template<int DIMENSIONS>
ROOT::Experimental::Hist::RCoordArray< DIMENSIONS >::RCoordArray ( const std::array< double, DIMENSIONS > &  arr)
inline

Copy-construction from a C++-style array.

(No need for a move-constructor, it isn't any better for doubles)

Definition at line 53 of file RHistUtils.hxx.

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

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