ROOT  6.06/09
Reference Guide
TIterator.cxx
Go to the documentation of this file.
1 // @(#)root/cont:$Id$
2 // Author: Fons Rademakers 13/08/95
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 /** \class TIterator
13 Iterator abstract base class. This base class provides the interface
14 for collection iterators.
15 */
16 
17 #include "TIterator.h"
18 #include "TError.h"
19 
21 
22 ////////////////////////////////////////////////////////////////////////////////
23 /// Compare two iterator objects.
24 /// For backward compatibility reasons we have to provide this
25 /// default implementation.
26 
27 Bool_t TIterator::operator!=(const TIterator &) const
28 {
29  ::Warning("TIterator::operator!=", "this method must be overridden!");
30  return false;
31 }
32 
33 ////////////////////////////////////////////////////////////////////////////////
34 /// Return current object or nullptr.
35 /// For backward compatibility reasons we have to provide this
36 /// default implementation.
37 
39 {
40  ::Warning("TIterator::operator*", "this method must be overridden!");
41  return nullptr;
42 }
bool Bool_t
Definition: RtypesCore.h:59
Iterator abstract base class.
Definition: TIterator.h:32
virtual TObject * operator*() const
Return current object or nullptr.
Definition: TIterator.cxx:38
void Warning(const char *location, const char *msgfmt,...)
#define ClassImp(name)
Definition: Rtypes.h:279
Mother of all ROOT objects.
Definition: TObject.h:58