Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ChangeOperModeRAII Class Reference

Struct to temporarily change the operation mode of a RooAbsArg until it goes out of scope.

Definition at line 45 of file RooFitImplHelpers.h.

Public Member Functions

 ChangeOperModeRAII (ChangeOperModeRAII const &other)=delete
 
 ChangeOperModeRAII (RooAbsArg *arg, RooAbsArg::OperMode opMode)
 
 ~ChangeOperModeRAII ()
 
ChangeOperModeRAIIoperator= (ChangeOperModeRAII const &other)=delete
 

Private Attributes

RooAbsArg_arg = nullptr
 
RooAbsArg::OperMode _oldOpMode
 

#include </home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master/roofit/roofitcore/res/RooFitImplHelpers.h>

Constructor & Destructor Documentation

◆ ChangeOperModeRAII() [1/2]

ChangeOperModeRAII::ChangeOperModeRAII ( RooAbsArg arg,
RooAbsArg::OperMode  opMode 
)
inline

Definition at line 47 of file RooFitImplHelpers.h.

◆ ChangeOperModeRAII() [2/2]

ChangeOperModeRAII::ChangeOperModeRAII ( ChangeOperModeRAII const &  other)
delete

◆ ~ChangeOperModeRAII()

ChangeOperModeRAII::~ChangeOperModeRAII ( )
inline

Definition at line 55 of file RooFitImplHelpers.h.

Member Function Documentation

◆ operator=()

ChangeOperModeRAII & ChangeOperModeRAII::operator= ( ChangeOperModeRAII const &  other)
delete

Member Data Documentation

◆ _arg

RooAbsArg* ChangeOperModeRAII::_arg = nullptr
private

Definition at line 58 of file RooFitImplHelpers.h.

◆ _oldOpMode

RooAbsArg::OperMode ChangeOperModeRAII::_oldOpMode
private

Definition at line 59 of file RooFitImplHelpers.h.

  • roofit/roofitcore/res/RooFitImplHelpers.h