// @(#)root/proof:$Name:  $:$Id: TDSetProxy.cxx,v 1.3 2006/05/15 09:45:03 brun Exp $
// Author: Maarten Ballintijn  12/03/02

/*************************************************************************
 * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TDSetProxy                                                           //
//                                                                      //
// TDSet proxy for use on slaves.                                       //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include "TDSetProxy.h"
#include "TProofServ.h"


ClassImp(TDSetProxy)

//______________________________________________________________________________
TDSetProxy::TDSetProxy()
{
   // Constructor

   fServ = 0;
}

//______________________________________________________________________________
TDSetProxy::TDSetProxy(const char *type, const char *objname, const char *dir)
   : TDSet(type,objname,dir)
{
   // Constructor

   fServ = 0;
   fCurrent = 0;
}

//______________________________________________________________________________
void TDSetProxy::SetProofServ(TProofServ *serv)
{
   // Set the reference TProofServ instance

   fServ = serv;
   fCurrent = 0;
}

//______________________________________________________________________________
void TDSetProxy::Reset()
{
   // Reset this instance

   delete fCurrent; fCurrent = 0;
}

//______________________________________________________________________________
TDSetElement *TDSetProxy::Next(Long64_t totalEntries)
{
   // Get the next packet

   fCurrent = fServ->GetNextPacket(totalEntries);

   return fCurrent;
}


ROOT page - Class index - Class Hierarchy - 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.