Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Internal::RSliceBinIndexMapper Class Referencefinal

Mapper of bin indices for slice operations.

Definition at line 24 of file RSliceBinIndexMapper.hxx.

Public Member Functions

 RSliceBinIndexMapper (std::vector< RSliceSpec > sliceSpecs)
 
std::size_t GetMappedDimensionality () const
 
const std::vector< RSliceSpec > & GetSliceSpecs () const
 
bool Map (const std::vector< RBinIndex > &original, std::vector< RBinIndex > &mapped) const
 Map a vector of RBinIndex according to the slice specifications.
 

Static Private Member Functions

static std::size_t ComputeMappedDimensionality (const std::vector< RSliceSpec > &sliceSpecs)
 

Private Attributes

std::size_t fMappedDimensionality
 The expected dimensionality of the mapped indices.
 
std::vector< RSliceSpecfSliceSpecs
 The requested slice specifications.
 

#include <ROOT/RSliceBinIndexMapper.hxx>

Constructor & Destructor Documentation

◆ RSliceBinIndexMapper()

ROOT::Experimental::Internal::RSliceBinIndexMapper::RSliceBinIndexMapper ( std::vector< RSliceSpec > sliceSpecs)
inlineexplicit
Parameters
[in]sliceSpecsthe slice specifications, must have size > 0

Definition at line 44 of file RSliceBinIndexMapper.hxx.

Member Function Documentation

◆ ComputeMappedDimensionality()

static std::size_t ROOT::Experimental::Internal::RSliceBinIndexMapper::ComputeMappedDimensionality ( const std::vector< RSliceSpec > & sliceSpecs)
inlinestaticprivate

Definition at line 30 of file RSliceBinIndexMapper.hxx.

◆ GetMappedDimensionality()

std::size_t ROOT::Experimental::Internal::RSliceBinIndexMapper::GetMappedDimensionality ( ) const
inline

Definition at line 53 of file RSliceBinIndexMapper.hxx.

◆ GetSliceSpecs()

const std::vector< RSliceSpec > & ROOT::Experimental::Internal::RSliceBinIndexMapper::GetSliceSpecs ( ) const
inline

Definition at line 52 of file RSliceBinIndexMapper.hxx.

◆ Map()

bool ROOT::Experimental::Internal::RSliceBinIndexMapper::Map ( const std::vector< RBinIndex > & original,
std::vector< RBinIndex > & mapped ) const
inline

Map a vector of RBinIndex according to the slice specifications.

Parameters
[in]originalthe original bin indices
[out]mappedthe mapped bin indices
Returns
whether the mapping was successful or the bin content should be discarded

Definition at line 60 of file RSliceBinIndexMapper.hxx.

Member Data Documentation

◆ fMappedDimensionality

std::size_t ROOT::Experimental::Internal::RSliceBinIndexMapper::fMappedDimensionality
private

The expected dimensionality of the mapped indices.

Definition at line 28 of file RSliceBinIndexMapper.hxx.

◆ fSliceSpecs

std::vector<RSliceSpec> ROOT::Experimental::Internal::RSliceBinIndexMapper::fSliceSpecs
private

The requested slice specifications.

Definition at line 26 of file RSliceBinIndexMapper.hxx.

Libraries for ROOT::Experimental::Internal::RSliceBinIndexMapper:

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