Logo ROOT   6.12/07
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 \ingroup Containers
14 Iterator abstract base class. This base class provides the interface
15 for collection iterators.
16 */
17 
18 #include "TIterator.h"
19 #include "TError.h"
20 
22 
23 ////////////////////////////////////////////////////////////////////////////////
24 /// Compare two iterator objects.
25 /// For backward compatibility reasons we have to provide this
26 /// default implementation.
27 
29 {
30  ::Warning("TIterator::operator!=", "this method must be overridden!");
31  return false;
32 }
33 
34 ////////////////////////////////////////////////////////////////////////////////
35 /// Return current object or nullptr.
36 /// For backward compatibility reasons we have to provide this
37 /// default implementation.
38 
40 {
41  ::Warning("TIterator::operator*", "this method must be overridden!");
42  return nullptr;
43 }
bool Bool_t
Definition: RtypesCore.h:59
Iterator abstract base class.
Definition: TIterator.h:30
virtual TObject * operator*() const
Return current object or nullptr.
Definition: TIterator.cxx:39
virtual Bool_t operator!=(const TIterator &) const
Compare two iterator objects.
Definition: TIterator.cxx:28
void Warning(const char *location, const char *msgfmt,...)
#define ClassImp(name)
Definition: Rtypes.h:359
Mother of all ROOT objects.
Definition: TObject.h:37