Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RooBatchCompute::BracketAdapter< T > Class Template Reference

template<class T = double>
class RooBatchCompute::BracketAdapter< T >

Little adapter that gives a bracket operator to types that don't have one.

It completely ignores the index and returns a constant.

Definition at line 29 of file BracketAdapters.h.

Public Member Functions

constexpr BracketAdapter (std::span< const T > payload) noexcept
constexpr BracketAdapter (T payload) noexcept
constexpr bool isBatch () const noexcept
constexpr operator double () const
constexpr double operator[] (std::size_t) const

Private Attributes

const T _payload

#include </home/stephan/code/root-2/roofit/roofitmore/src/BracketAdapters.h>

Constructor & Destructor Documentation

◆ BracketAdapter() [1/2]

template<class T = double>
RooBatchCompute::BracketAdapter< T >::BracketAdapter ( T payload)
inlineconstexprnoexcept

Definition at line 32 of file BracketAdapters.h.

◆ BracketAdapter() [2/2]

template<class T = double>
RooBatchCompute::BracketAdapter< T >::BracketAdapter ( std::span< const T > payload)
inlineconstexprnoexcept

Definition at line 35 of file BracketAdapters.h.

Member Function Documentation

◆ isBatch()

template<class T = double>
bool RooBatchCompute::BracketAdapter< T >::isBatch ( ) const
inlineconstexprnoexcept

Definition at line 46 of file BracketAdapters.h.

◆ operator double()

template<class T = double>
RooBatchCompute::BracketAdapter< T >::operator double ( ) const
inlineconstexpr

Definition at line 42 of file BracketAdapters.h.

◆ operator[]()

template<class T = double>
double RooBatchCompute::BracketAdapter< T >::operator[] ( std::size_t ) const
inlineconstexpr

Definition at line 38 of file BracketAdapters.h.

Member Data Documentation

◆ _payload

template<class T = double>
const T RooBatchCompute::BracketAdapter< T >::_payload
private

Definition at line 51 of file BracketAdapters.h.


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