ROOT
6.08/07
Reference Guide
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
\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
21
ClassImp
(
TIterator
)
22
23
////////////////////////////////////////////////////////////////////////////////
24
/// Compare two iterator objects.
25
/// For backward compatibility reasons we have to provide this
26
/// default implementation.
27
28
Bool_t
TIterator
::operator!=(const
TIterator
&)
const
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
39
TObject
*
TIterator::operator*
()
const
40
{
41
::Warning
(
"TIterator::operator*"
,
"this method must be overridden!"
);
42
return
nullptr
;
43
}
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:39
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:37