6template <
typename Element>
10 std::cout<<
"recorderT::Print : Target variable address is not saved."<<std::endl;
16 std::cout <<
"RecorderT | data_addr: " << prt <<
" | data_saved " << data << std::endl;
20template <
typename Element>
23 if((sgn && data_>data) || (!sgn && data_<data)){
30template <
typename Element>
32 return CMPSave(sgn, *addr);
35template <
typename Element>
37 return CMPSave(kTRUE, data_);
40template <
typename Element>
42 return CMPSave(kTRUE);
45template <
typename Element>
47 return CMPSave(kFALSE, data_);
50template <
typename Element>
52 return CMPSave(kFALSE);
Remembers one value of type Element, optionally pulled from a watched variable.
Bool_t MaxSave()
Store the watched variable if it is larger than the stored value.
Bool_t MinSave()
Store the watched variable if it is smaller than the stored value.
Bool_t CMPSave(const Bool_t sgn)
Compare the watched variable with the stored value and save it (shared by MaxSave and MinSave).
void Print()
Print the watched variable's value and the stored value on std::cout (a note is printed if no address...
Small value holder that remembers one number, optionally read from a variable (recorder).