ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
core
cont
src
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
20
ClassImp
(
TIterator
)
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
38
TObject
*
TIterator::operator*
()
const
39
{
40
::Warning
(
"TIterator::operator*"
,
"this method must be overridden!"
);
41
return
nullptr
;
42
}
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
TIterator
Iterator abstract base class.
Definition:
TIterator.h:32
TIterator.h
TIterator::operator*
virtual TObject * operator*() const
Return current object or nullptr.
Definition:
TIterator.cxx:38
TError.h
Warning
void Warning(const char *location, const char *msgfmt,...)
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:279
TObject
Mother of all ROOT objects.
Definition:
TObject.h:58