Hi Thomas, it is not really needed for methods marked //toggle but this current implementation checks for a matching data member. To be fixed. Cheers, Fons. On Thu, 2004-03-11 at 15:55, Thomas Bretz wrote: > 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. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://www.rademakers.org/fons/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET