TIterator.cxx

Go to the documentation of this file.
00001 // @(#)root/cont:$Id: TIterator.cxx 23212 2008-04-14 15:30:20Z rdm $
00002 // Author: Fons Rademakers   13/08/95
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 //////////////////////////////////////////////////////////////////////////
00013 //                                                                      //
00014 // TIterator                                                            //
00015 //                                                                      //
00016 // Iterator abstract base class. This base class provides the interface //
00017 // for collection iterators.                                            //
00018 //                                                                      //
00019 //////////////////////////////////////////////////////////////////////////
00020 
00021 #include "TIterator.h"
00022 #include "TError.h"
00023 
00024 
00025 ClassImp(TIterator)
00026 
00027 //______________________________________________________________________________
00028 bool TIterator::operator!=(const TIterator &) const
00029 {
00030    // Compare two iterator objects.
00031    // For backward compatibility reasons we have to provide this
00032    // default implementation.
00033 
00034    ::Warning("TIterator::operator!=", "this method must be overridden!");
00035    return false;
00036 }
00037 
00038 //______________________________________________________________________________
00039 TObject *TIterator::operator*() const
00040 {
00041    // Return current object or nullptr.
00042    // For backward compatibility reasons we have to provide this
00043    // default implementation.
00044 
00045    ::Warning("TIterator::operator*", "this method must be overridden!");
00046    return nullptr;
00047 }

Generated on Tue Jul 5 14:11:37 2011 for ROOT_528-00b_version by  doxygen 1.5.1