//*-- Author : Valeriy Onuchin 11/09/2000 
//
//
////////////////////////////////////////////////////////////////////////////////
//
// rooObjItr corresponds to ooItr(ooObj) class
//
// Iterator class for Basic Objects. 

#include "rooObjy.h"
#include <ooas.h>
#include <oo.h>

ClassImp(rooObjItr)

////////////////////////////////////////////////////////////////////////////////
//______________________________________________________________________________
 rooObjItr::rooObjItr()
{
   // default ctor
   
   fImp = new ooItr(ooObj)();
}

//______________________________________________________________________________
 Bool_t rooObjItr::next()
{
   // Sets iterator to reference the next object of the current iteration.
   //
   // Returns kTRUE if there is a next object within the iteration, kFALSE 
   // if all of the objects in the iteration have been traversed or if an error
   // occurred.
 
   return ((ooItr(ooObj)*)fImp)->next();
}

//______________________________________________________________________________
 Bool_t rooObjItr::scan(const rooObj& ob, Int_t mode)
{
   // Initializes an iterator to traverse all basic objects in the container,
   // database, or federated database referenced by ob.
   
   ooHandle(ooObj)* obj =  (ooHandle(ooObj)*)ob.getImp();
   return ((ooItr(ooObj)*)fImp)->scan(*obj,(ooMode)mode);
}

//______________________________________________________________________________
 Int_t rooObjItr::typeN()
{
   // Gets class type number of currently referenced object.
   
   return ((ooItr(ooObj)*)fImp)->typeN();
}



ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.