[root] / trunk / tree / tree / inc / TLeaf.h Repository:
ViewVC logotype

Log of /trunk/tree/tree/inc/TLeaf.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: 4660 byte(s)
Diff to previous 43597
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 43597 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 31 13:48:47 2012 UTC (2 years, 9 months ago) by axel
File length: 4655 byte(s)
Diff to previous 36407
Rework TTree::ReadStream() / ReadFile(), mainly to fix delimited reading of string columns:
TLeaf::ReadValue() now takes an optional delimiter argument that is ignored for all but TLeafC. Here, input stops when reading this character, instead of at the first whitespace.
Use that in TTree::ReadStream() to delimit reading of TLeafC.
TTree::ReadStream() now tokenizes the row itself, and passes a stringstream containing nothing but the current column to TLeaf::ReadValue().
Improve error handling, improve debug output.
Clearly state which lines are skipped due to errors and why.
Fix windows files leaving '\n' in branch names when reading them from the file.
Separate concepts of number of input line (for communication with user) and number of good lines (as returned).
Simplify EOF-without-newline case.
Add error message for TLeaf::ReadValue(), i.e. if ReadValue() is called on a derived class that doesn't implement it.

Revision 36407 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 22 02:04:08 2010 UTC (4 years, 3 months ago) by pcanal
File length: 4581 byte(s)
Diff to previous 22902
From Mike Marino:

Replace the overly generic ifstream by istream as the argument to ReadValue

Revision 22902 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 31 09:48:42 2008 UTC (6 years, 9 months ago) by rdm
File length: 4582 byte(s)
Diff to previous 20882
move tree, treeplayer and treeviewer under tree 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/tree/inc/TLeaf.h
File length: 4582 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/tree/inc/TLeaf.h
File length: 4582 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/tree/inc/TLeaf.h
File length: 4628 byte(s)
Diff to previous 18667
remove :$ from tag line

Revision 18667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 4 17:32:45 2007 UTC (7 years, 8 months ago) by pcanal
Original Path: trunk/tree/inc/TLeaf.h
File length: 4638 byte(s)
Diff to previous 17667
The value of TBasket:;fBasket was incorrect in some cases when using
the TTreeCloner.  This is solved (and thread safetly is improved) by
removing the gBranch global variable and using alternative mechanism
to set TBakset::fBasket.

Revision 17667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 3 18:33:15 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4620 byte(s)
Diff to previous 16176
Use forward declaration of TClonesArray and fix consequences

Revision 16176 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 31 11:05:20 2006 UTC (8 years, 4 months ago) by rdm
Original Path: trunk/tree/inc/TLeaf.h
File length: 4662 byte(s)
Diff to previous 15789
changed all Riostream.h in headers to Riosfwd.h. Riostream.h has "using namespace std"
and should only appear in implementation files.

Revision 15789 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 13 05:30:48 2006 UTC (8 years, 6 months ago) by pcanal
Original Path: trunk/tree/inc/TLeaf.h
File length: 4634 byte(s)
Diff to previous 15134
From Paul Russo:

     o (Constructor) Remove 64 char length limit on branch name.

     o (ResetAddress) Improve documentation.

Revision 15134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4524 byte(s)
Diff to previous 13207
From Federico Carminati:

"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."

Revision 13207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 11 22:16:04 2005 UTC (9 years, 2 months ago) by pcanal
Original Path: trunk/tree/inc/TLeaf.h
File length: 4462 byte(s)
Diff to previous 10336
Update the spacing and documentation to match the coding rule

Revision 10336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 18 12:32:12 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4499 byte(s)
Diff to previous 7783
Implement new function TTree::ReadFile
Long64_t TTree::ReadFile(const char *filename, const char *branchDescriptor)
{
   // Create or simply read branches from filename
   // if branchDescriptor = "" (default), it is assumed that the Tree descriptor
   //    is given in the first line of the file with a syntax like
   //     A/D:Table[2]/F:Ntracks/I:astring/s
   //  otherwise branchDescriptor must be specified with the above syntax.
   //
   // A TBranch object is created for each variable in the expression.
   // The total number of rows read from the file is returned.

TNtuple::ReadFile has been modified to be consistent with TTree::ReadFile.
New function TLeaf::ReadValue implemented (and in all TLeaf derived classes).

Revision 7783 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 19 07:55:25 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4422 byte(s)
Diff to previous 5717
From Philippe:

Using valgrind on TBench, I found some uninitialized memory in TLeaf
in the case of a TLeafElement belonging to a split TClonesArray.

The uninitialized memory came from the fact that the constructor was
not initializing everything if it could not find the leafcount.
In the case described above, the leafcount is not available until
after the constructor of the leaf (or so it seems) and is explicitly
set later using TLeaf::SetLeafCount.

This patch insures that more data members are initialized even in
case of seemingly incorrect configuration and insures that the Zombie
state is removed if the leafcount becomes available after the end of
the constructor.

Revision 5717 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 2 18:50:12 2002 UTC (12 years, 1 month ago) by rdm
Original Path: trunk/tree/inc/TLeaf.h
File length: 4443 byte(s)
Diff to previous 1920
mega patch to remove almost all compiler warnings on MacOS X where the
compiler is by default in pedantic mode (LHCb also like to use this option).
The following issues have been fixed:
- removal of unused arguments
- comparison between signed and unsigned integers
- not calling of base class copy ctor in copy ctor's
To be done, the TGeo classes where we get still many hundred warnings of
the above nature. List forwarded to Andrei.

Revision 1920 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 9 08:13:56 2001 UTC (13 years, 9 months ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4444 byte(s)
Diff to previous 1388
New function TLeaf::IsOnTerminalBranch returning kTRUE is the leaf is on a
terminal branch. This function is used by the new version of TTreeFormula.

Revision 1388 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 16 16:15:59 2001 UTC (14 years ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4375 byte(s)
Diff to previous 1205
Add new function PrintValue

Revision 1205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4322 byte(s)
Diff to previous 981
      W A R N I N G   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     ==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
   virtual TObject    *Clone() const;
   virtual Int_t       Compare(const TObject *obj) const;
   virtual void        Delete(Option_t *option=""); // *MENU*
   virtual void        DrawClass() const; // *MENU*
   virtual void        DrawClone(Option_t *option="") const; // *MENU*
   virtual void        Dump() const; // *MENU*
   virtual TObject    *FindObject(const TObject *obj) const;
   virtual char       *GetObjectInfo(Int_t px, Int_t py) const;
   virtual ULong_t     Hash() const;
   virtual void        Inspect() const; // *MENU*
   virtual Bool_t      IsEqual(const TObject *obj) const;
   virtual void        ls(Option_t *option="") const;
   virtual void        Print(Option_t *option="") const;

A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.

Revision 981 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 21 20:48:08 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4238 byte(s)
Diff to previous 680
Increment class version number from 1 to 2.
Declare members fNdata and fBranch not persistent.

Revision 680 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 07:51:12 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4222 byte(s)
Diff to previous 122
Enhancement of the automatic split mode by Philippe canal.
Variable length arrays are now supported.
The array has to be declared as:
        Int_t  myindex;
        Int_t *myarray;  //[myindex]
This also enables support for variable length C-style string:
        char  *mystring;
The mods make sure that MakeClass produces the correct code in this case.

Revision 122 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 13 09:27:08 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/tree/inc/TLeaf.h
File length: 4153 byte(s)
Diff to previous 3
- Mods in all the tree classes to reflect the changes from Float_t to Double_t
  in the graphics and histogram classes. The TLeaf::GetValue in particular
  are now of type Double_t.
  TTree::GetMaximum, GetMinimum return a Double_t.
  TChain::GetMaximum, GetMinimum return a Double_t.
  TTree::GetV1, GetV2 and GetV3 return a Double_t* instead of a Float_t*.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/tree/inc/TLeaf.h
File length: 4073 byte(s)
Copied from: branches/rdm/tree/inc/TLeaf.h revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/tree/inc/TLeaf.h
File length: 4073 byte(s)
Initial import of ROOT into CVS

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