Seems nobody got this eMail... -------- Original Message -------- Subject: [ROOT] *TOGGLE* Date: Mon, 08 Mar 2004 17:05:26 +0100 From: Thomas Bretz <tbretz@astro.uni-wuerzburg.de> To: roottalk@pcroot.cern.ch <roottalk@pcroot.cern.ch> 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