Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooBatchCompute::BracketAdapterWithMask Class Reference

Definition at line 55 of file BracketAdapters.h.

Public Member Functions

 BracketAdapterWithMask (const BracketAdapterWithMask &other) noexcept
 
 BracketAdapterWithMask (double payload, const RooSpan< const double > &batch) noexcept
 Construct adapter from a fallback value and a batch of values.
 
 BracketAdapterWithMask (RooSpan< const double > batch)
 Construct adapter from a batch of values.
 
bool isBatch () const noexcept
 
BracketAdapterWithMaskoperator= (const BracketAdapterWithMask &other)=delete
 
double operator[] (std::size_t i) const noexcept
 

Private Attributes

const bool _isBatch
 
const size_t _mask
 
const double _payload
 
const double *__restrict const _pointer
 

#include <BracketAdapters.h>

Constructor & Destructor Documentation

◆ BracketAdapterWithMask() [1/3]

RooBatchCompute::BracketAdapterWithMask::BracketAdapterWithMask ( double  payload,
const RooSpan< const double > &  batch 
)
inlinenoexcept

Construct adapter from a fallback value and a batch of values.

  • If batch.size() == 0, always return payload.
  • Else, return batch[i].

Definition at line 60 of file BracketAdapters.h.

◆ BracketAdapterWithMask() [2/3]

RooBatchCompute::BracketAdapterWithMask::BracketAdapterWithMask ( RooSpan< const double batch)
inline

Construct adapter from a batch of values.

  • If batch.size() == 1, always return the value at batch[0].
  • Else, return batch[i].

Definition at line 71 of file BracketAdapters.h.

◆ BracketAdapterWithMask() [3/3]

RooBatchCompute::BracketAdapterWithMask::BracketAdapterWithMask ( const BracketAdapterWithMask other)
inlinenoexcept

Definition at line 80 of file BracketAdapters.h.

Member Function Documentation

◆ isBatch()

bool RooBatchCompute::BracketAdapterWithMask::isBatch ( ) const
inlinenoexcept

Definition at line 94 of file BracketAdapters.h.

◆ operator=()

BracketAdapterWithMask & RooBatchCompute::BracketAdapterWithMask::operator= ( const BracketAdapterWithMask other)
delete

◆ operator[]()

double RooBatchCompute::BracketAdapterWithMask::operator[] ( std::size_t  i) const
inlinenoexcept

Definition at line 90 of file BracketAdapters.h.

Member Data Documentation

◆ _isBatch

const bool RooBatchCompute::BracketAdapterWithMask::_isBatch
private

Definition at line 99 of file BracketAdapters.h.

◆ _mask

const size_t RooBatchCompute::BracketAdapterWithMask::_mask
private

Definition at line 102 of file BracketAdapters.h.

◆ _payload

const double RooBatchCompute::BracketAdapterWithMask::_payload
private

Definition at line 100 of file BracketAdapters.h.

◆ _pointer

const double* __restrict const RooBatchCompute::BracketAdapterWithMask::_pointer
private

Definition at line 101 of file BracketAdapters.h.

  • roofit/batchcompute/inc/BracketAdapters.h