[root] / trunk / core / cont / inc / TBits.h Repository:
ViewVC logotype

Log of /trunk/core/cont/inc/TBits.h

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 8757 byte(s)
Diff to previous 43515
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 43515 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 27 21:15:53 2012 UTC (2 years, 9 months ago) by pcanal
File length: 8742 byte(s)
Diff to previous 25695
Fix coding convention R.RN7 (Avoid the raw C types 'long', 'unsigned long', 'long double', 'bool', 'long long' and 'unsigned long long'.)

Revision 25695 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 3 14:06:16 2008 UTC (6 years, 3 months ago) by brun
File length: 8736 byte(s)
Diff to previous 22961
Implement suggestion of https://savannah.cern.ch/bugs/?41052

Revision 22961 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by rdm
File length: 8726 byte(s)
Diff to previous 20882
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/cont/inc/TBits.h
File length: 8726 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/cont/inc/TBits.h
File length: 8726 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/cont/inc/TBits.h
File length: 8771 byte(s)
Diff to previous 17402
remove :$ from tag line

Revision 17402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 19 16:48:00 2007 UTC (8 years ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 8781 byte(s)
Diff to previous 15763
CVs been changed into a pure abstract interface.
The concrete implementation is in the new class TBufferFile.
All classes previously deriving from TBuffer derive now from TBufferFile, ie

  TBuffer  <- TBufferFile  <- TMessage
                           <- TBufferXML
                           <- TBufferSQL
                           <- TBufferSQL2

Because there are several problems with C++ operators overloading,
The I/O operators are defined in TBuffer. These are inline functions
calling C++ virtual functions defined in TBuffer and overloaded
by TBufferFile and all other derived classes when necessary.

The previous implementation of TBuffer.h included <vector> and Bytes.h.
The two include statements have been moved to TBufferFile.h. As a result the
compilation of the ROOT system is now slightly faster and a big bonus
is that changes in TBufferFile or Bytes.h will affect only TBufferFile
and will not force the recompilation of the entire system.
This change has some side-effects. If you assumed that include <vector>
was done by TBuffer.h, you may have to specify this include directly
in your class. This was the case for a few ROOT classes.


 : ----------------------------------------------------------------------

Revision 15763 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 11 09:05:02 2006 UTC (8 years, 6 months ago) by rdm
Original Path: trunk/cont/inc/TBits.h
File length: 8737 byte(s)
Diff to previous 15420
correct a number of incorrect and/or ambiguous license statements.

Revision 15420 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 14 11:47:11 2006 UTC (8 years, 7 months ago) by rdm
Original Path: trunk/cont/inc/TBits.h
File length: 9412 byte(s)
Diff to previous 13818
Don't use inline functions before they are declared (generates warning when
compiling with -Wredundant-decls).

Revision 13818 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 11 07:21:05 2006 UTC (9 years ago) by pcanal
Original Path: trunk/cont/inc/TBits.h
File length: 8996 byte(s)
Diff to previous 13258
Remove #ifdef CINT which is superfluous with cint 5.16.6

Revision 13258 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 16 20:11:59 2005 UTC (9 years, 2 months ago) by pcanal
Original Path: trunk/cont/inc/TBits.h
File length: 9017 byte(s)
Diff to previous 13001
White spaces and comments update

Revision 13001 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 22 00:39:58 2005 UTC (9 years, 3 months ago) by rdm
Original Path: trunk/cont/inc/TBits.h
File length: 9025 byte(s)
Diff to previous 13000
fix:
include/TBits.h(106): warning #858: type qualifier on return type is meaningless
     const Bool_t operator[](UInt_t bitnumber) const { return TestBitNumber(bitnumber); }
                  ^

Revision 13000 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 21 22:01:36 2005 UTC (9 years, 3 months ago) by pcanal
Original Path: trunk/cont/inc/TBits.h
File length: 9047 byte(s)
Diff to previous 8023
This patch adds support for the operators:
   |,&,^,<<.>>,|=,&=,^=,>>=,<<= and []
for the class TBits and for printing a TBits
via an ostream.

Revision 8023 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 26 11:10:07 2004 UTC (11 years ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 6311 byte(s)
Diff to previous 8008
Move the definition of ResetBitNumber as an inline function
after the definition of the inline function SetBitNumber.
To avoid a fatal error with SGI compilers.

Revision 8008 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 25 11:56:06 2004 UTC (11 years ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 6253 byte(s)
Diff to previous 7848
Extension of TBits by Filip Pizlo <pizlo@purdue.edu>
New getters/setters:
   //----- Optimized setters
   // Each of these will replace the contents of the receiver with the bitvector
   // in the parameter array.  The number of bits is changed to nbits.  If nbits
   // is smaller than fNbits, the receiver will NOT be compacted.
   void   Set(UInt_t nbits, const Char_t *array);
   void   Set(UInt_t nbits, const UChar_t *array) { Set(nbits, (const Char_t*)array); }
   void   Set(UInt_t nbits, const Short_t *array);
   void   Set(UInt_t nbits, const UShort_t *array) { Set(nbits, (const Short_t*)array); }
   void   Set(UInt_t nbits, const Int_t *array);
   void   Set(UInt_t nbits, const UInt_t *array) { Set(nbits, (const Int_t*)array); }
   void   Set(UInt_t nbits, const Long64_t *array);
   void   Set(UInt_t nbits, const ULong64_t *array) { Set(nbits, (const Long64_t*)array); }

   //----- Optimized getters
   // Each of these will replace the contents of the parameter array with the
   // bits in the receiver.  The parameter array must be large enough to hold
   // all of the bits in the receiver.
   // Note on semantics: any bits in the parameter array that go beyond the
   // number of the bits in the receiver will have an unspecified value.  For
   // example, if you call Get(Int*) with an array of one integer and the TBits
   // object has less than 32 bits, then the remaining bits in the integer will
   // have an unspecified value.
   void   Get(Char_t *array) const;
   void   Get(UChar_t *array) const { Get((Char_t*)array); }
   void   Get(Short_t *array) const;
   void   Get(UShort_t *array) const { Get((Short_t*)array); }
   void   Get(Int_t *array) const;
   void   Get(UInt_t *array) const { Get((Int_t*)array); }
   void   Get(Long64_t *array) const;
   void   Get(ULong64_t *array) const { Get((Long64_t*)array); }

New test program testbits in the test directory.

Revision 7848 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 6 08:27:33 2004 UTC (11 years ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 3288 byte(s)
Diff to previous 3503
Implement function TBits::Clear

Revision 3503 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 19 15:40:59 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 3249 byte(s)
Diff to previous 3410
 Add an aoptional argument to CountBits, FirstNullBit, FirstSetBit.
This argument startBit (default=0) may be specified to give a starting bit
number where to start the operation.

Revision 3410 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 6 15:53:46 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 3198 byte(s)
Diff to previous 3409
Rename functions FirstBitNull,FirstBitSet to FirstNullBit,FirstSetBit.

Revision 3409 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 6 15:27:34 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 3198 byte(s)
Diff to previous 1569
Several changes in class TBits.
 - Make all getters const
 - rewrite function CountBits (8 times faster than previous version)
 - implement two new functions
   UInt_t  FirstBitNull()  const;
   UInt_t  FirstBitSet()   const;

Revision 1569 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 9 16:47:52 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 3129 byte(s)
Diff to previous 1562
New version of TTreeFormula/TFormula by Philippe Canal:
In a TFormula . and -> are now synonymous.

In a TTreeFormula, you can now specify the index of an array (TClonesArray
or regular array) via another expression of the variable of the tree.

For example the following are now correctly handled:
  myTree->Draw("clone1.a1:clone2.a2[2]");
  myTree->Draw("clone1.a1:clone2.a2[clone1.b1]");
  myTree->Draw("clone1.a1","clone2.a2[clone1.b1]>0");

This patch also enable (rudimentarily for now) the access to data members.
So now both the following are possible:
  T->Draw("event->GetNtrack()");
  T->Draw("event.fNtrack");

The lookup of leafname has been improved so that whether of not the dot
has been forced into the branchname the following will work:

  T->Draw("event.fTemperature")
  T->Draw("fTemperature")

Revision 1562 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 8 17:04:18 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 3133 byte(s)
Diff to previous 1561
Fix inconsistencies and declare const several functions.

Revision 1561 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu Feb 8 16:58:22 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/cont/inc/TBits.h
File length: 3114 byte(s)
New class TBits by Philippe canal
// TBits                                                                //
//                                                                      //
// Container of bits                                                    //
//                                                                      //
// This class provides a simple container of bits.                      //
// Each bit can be set and tested via the functions SetBitNumber and    //
// TestBitNumber.                                             .         //
// The default value of all bits is kFALSE.                             //

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9