//*-- Author : Valeriy Onuchin 11/09/2000 
//
//
////////////////////////////////////////////////////////////////////////////////
//
// rooContItr corresponds to ooItr(ooContObj) class
//
// Iterator class for containers.

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

ClassImp(rooContItr)

////////////////////////////////////////////////////////////////////////////////
//______________________________________________________________________________
 rooContItr::rooContItr()
{
   // default ctor
   
   fImp = new ooItr(ooContObj)();
}

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

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

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