[ROOT] *TOGGLE*

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Mon Mar 08 2004 - 17:05:26 MET


Hi all,

why does this functionality need a existing data-member, eg
Bool_t fMyBit;

Isn't it enough if the corresponding Set, Get/Is functions are 
available, eg:
void SetMyBit(Bool_t b) { b ? SetBit(1<<14) : ResetBit(1<<14); } //*TOGGLE*
Bool_t IsMyBit() const { return TestBit(1<<14); }

Best regards,
Thomas.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET