[root] / trunk / core / cont / src / TOrdCollection.cxx Repository:
ViewVC logotype

Log of /trunk/core/cont/src/TOrdCollection.cxx

Parent Directory Parent Directory


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

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: 16648 byte(s)
Diff to previous 23531
Fix coding convention R.RN7 (Avoid the raw C types 'long', 'unsigned long', 'long double', 'bool', 'long long' and 'unsigned long long'.)

Revision 23531 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 24 16:23:42 2008 UTC (6 years, 9 months ago) by rdm
File length: 16644 byte(s)
Diff to previous 23198
iterator of TOrdCollection objects can be now used with std::for_each,
std::find_if, std::count_if and the like.

Revision 23198 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 14 09:23:08 2008 UTC (6 years, 9 months ago) by rdm
File length: 16479 byte(s)
Diff to previous 22961
From Anar and me:
The background is the following. While working on the PROOF code I found
that enumerating TList is an inconvenient and a long operation, I had to
write the same code all over the place and make duplications. I tried
to use STD algorithms with it, namely std::for_each, and failed.
I therefore decided to enable std::for_each algorithm for ROOT 
Containers/Iterators by making as few as possible changes, without rewriting
iterators at all. Now with only two simple lines of code one is able to
iterate through a container:

TIter iter(&list);
for_each(iter.Begin(), TIter::End(), SEnumFunctor());

or

for_each(iter.Begin(), inter_end, SEnumFunctor());

where iter_end could be an iterator to a middle of the container.

After I had changed Iterators so that they could be used with std::for_each,
I decided to go further and did some more changes. As a result,

  - I have updated CINT implementation of some algorithms (they look now
    more or less better in terms of the standard),

  - TList and TObjArray can be now used with std::for_each, std::find_if,
    std::count_if (probably with some more algorithms. I've listed here
    only what has been *checked* by me). Other containers will be supported
    in a next patch.

  - A test program has been added: $ROOTSYS/test/stressIterators.cxx

  - A tutorial macro has been added: $ROOTSYS/tutorials/cont/TListAndSTL.C

Patch has been verified on Linux, MacOS X, Solaris 10 i386 and Windows.

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: 15331 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/src/TOrdCollection.cxx
File length: 15331 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/src/TOrdCollection.cxx
File length: 15331 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/src/TOrdCollection.cxx
File length: 15387 byte(s)
Diff to previous 17315
remove :$ from tag line

Revision 17315 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 10:15:47 2007 UTC (8 years ago) by brun
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15397 byte(s)
Diff to previous 14745
Remove several dependencies on TMath.h

Revision 14745 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 19 08:22:26 2006 UTC (8 years, 9 months ago) by rdm
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15417 byte(s)
Diff to previous 10520
Change the TError.h macros:
Assert   ->  R__ASSERT
Check    ->  R__CHECK
Change the TCollection.h macro:
ForEach  ->  R__FOR_EACH
This to avoid potential problems due too trivial macro names.
The old macros will be removed in the next release. Currently
they will print out warning messages with the advice to move
to the new macro names.

Revision 10520 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 12 21:51:18 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15398 byte(s)
Diff to previous 8613
Implement a sugestion from Eddy Offermann: add constness to
the following functions of the collection classes
AddAfter, AddBefore, After, Before

Revision 8613 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 20 09:27:23 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15374 byte(s)
Diff to previous 5582
small white space correction.

Revision 5582 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 15 13:26:29 2002 UTC (12 years, 2 months ago) by rdm
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15375 byte(s)
Diff to previous 5022
remove warnings produced by valgrind. Added TStorage::Alloc() and Dealloc()
which work in conjunction with TStorage::ReAlloc() and are called from
TObjArray and TOrdCollection.

Revision 5022 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 29 09:22:29 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15375 byte(s)
Diff to previous 4565
made argument of GetObjectRef() a const TObject*. Idem for TMap::GetValue().
Suggestion by Axel.

Revision 4565 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 18 08:43:30 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15368 byte(s)
Diff to previous 3225
Add explicit calls to the base classes copy constructors in the copy constructors.
This is required by gcc on MacOS X

Revision 3225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 16 02:47:36 2001 UTC (13 years, 2 months ago) by rdm
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15351 byte(s)
Diff to previous 2691
allocate arrays using ::operator new() instead of new [] (and use
::operator delete() to clean up). This to avoid possible problems
due to usage of ReAlloc() which also uses the ::operator new().

Revision 2691 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 15 15:01:54 2001 UTC (13 years, 5 months ago) by brun
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15266 byte(s)
Diff to previous 1872
Fix a bug in TOrdCollection::AddBefore. The object was added one element ahead
of the requested position. Thanks to Peter H. L. Christiansen for reporting.

Revision 1872 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 29 11:25:00 2001 UTC (13 years, 9 months ago) by brun
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15268 byte(s)
Diff to previous 1868
Forgot to make GetObjectRef const.

Revision 1868 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 29 10:57:01 2001 UTC (13 years, 9 months ago) by brun
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15261 byte(s)
Diff to previous 1336
Add new function GetObjectRef.

Revision 1336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 9 18:33:59 2001 UTC (14 years ago) by rdm
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15030 byte(s)
Diff to previous 612
IndexOf() now takes a const TObject* as argument.

Revision 612 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 8 16:11:03 2000 UTC (14 years, 4 months ago) by rdm
Original Path: trunk/cont/src/TOrdCollection.cxx
File length: 15028 byte(s)
Diff to previous 3
introduced the concept of ownership for all collections. By calling
TCollection::SetOwner() a collection becomes the owner of its elements.
In those cases the dtor and Clear() method will delete the items and not
just free the container space. Also all collections now make their
TObject part persistent (so the TObject bits are saved). Version numbers
were properly increased.

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/cont/src/TOrdCollection.cxx
File length: 14682 byte(s)
Copied from: branches/rdm/cont/src/TOrdCollection.cxx 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/cont/src/TOrdCollection.cxx
File length: 14682 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