//*-- Author : Valeriy Onuchin 11/09/2000 
//
//
////////////////////////////////////////////////////////////////////////////////
//
// rooDBItr corresponds to ooItr(ooDBObj) class
//
// Iterator class for databases.

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

ClassImp(rooDBItr)

/////////////////////////////////////////////////////////////////////
//______________________________________________________________________________
 rooDBItr::rooDBItr()
{
   // default ctor
   
   fImp = new ooItr(ooDBObj)();
}

//______________________________________________________________________________
 Bool_t rooDBItr::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(ooDBObj)*)fImp)->next();
}

//______________________________________________________________________________
 Bool_t rooDBItr::scan(const rooFDObj& fd, Int_t mode)
{
   // Initializes an iterator to traverse all databases contained in the
   // federated database referenced by fd.
   
   ooHandle(ooFDObj)* obj =  (ooHandle(ooFDObj)*)fd.getImp();
   return ((ooItr(ooDBObj)*)fImp)->scan(*obj,(ooMode)mode);
}

//______________________________________________________________________________
 Int_t rooDBItr::typeN()
{
   // Gets class type number of currently referenced object (ooDBObj)
   
   return ((ooItr(ooDBObj)*)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.