Logo ROOT  
Reference Guide
TProcessUUID.h
Go to the documentation of this file.
1 // @(#)root/cont:$Id$
2 // Author: Rene Brun 06/07/2002
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TProcessUUID
13 #define ROOT_TProcessUUID
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TProcessUUID //
19 // //
20 // TProcessID managing UUIDs //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 
25 #include "TProcessID.h"
26 
27 class THashList;
28 class TBits;
29 class TUUID;
30 class TObjString;
31 
32 class TProcessUUID : public TProcessID {
33 
34 private:
35  TProcessUUID(const TProcessID&); // TProcessUUID are not copiable.
36  TProcessUUID &operator=(const TProcessUUID&); // TProcessUUID are not copiable.
37 
38 protected:
39  TList *fUUIDs; //Global list of TUUIDs
40  TBits *fActive; //Table of active UUIDs
41 
42 public:
43 
44  TProcessUUID();
45  virtual ~TProcessUUID();
46  UInt_t AddUUID(TUUID &uuid, TObject *obj);
47  UInt_t AddUUID(const char *uuids);
48  TObjString *FindUUID(UInt_t number) const;
49  TBits *GetActive() const {return fActive;}
50  TList *GetUUIDs() const {return fUUIDs;}
51  void RemoveUUID(UInt_t number);
52 
53  ClassDef(TProcessUUID,1) //TProcessID managing UUIDs
54 };
55 
56 #endif
TProcessUUID::fUUIDs
TList * fUUIDs
Definition: TProcessUUID.h:39
TProcessUUID
This class is a specialized TProcessID managing the list of UUIDs.
Definition: TProcessUUID.h:32
TProcessUUID::TProcessUUID
TProcessUUID()
Default constructor.
Definition: TProcessUUID.cxx:56
TProcessUUID::FindUUID
TObjString * FindUUID(UInt_t number) const
Find the TObjString by slot number.
Definition: TProcessUUID.cxx:128
TProcessUUID::GetActive
TBits * GetActive() const
Definition: TProcessUUID.h:49
TProcessID
A TProcessID identifies a ROOT job in a unique way in time and space.
Definition: TProcessID.h:74
TProcessUUID::TProcessUUID
TProcessUUID(const TProcessID &)
TBits
Container of bits.
Definition: TBits.h:26
TObjString
Collectable string class.
Definition: TObjString.h:28
TProcessID.h
TProcessUUID::fActive
TBits * fActive
Definition: TProcessUUID.h:40
THashList
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
Definition: THashList.h:34
TProcessUUID::GetUUIDs
TList * GetUUIDs() const
Definition: TProcessUUID.h:50
TProcessUUID::AddUUID
UInt_t AddUUID(TUUID &uuid, TObject *obj)
Add uuid to the table of UUIDs The TObject *obj has its uniqueID set to the UUID number return entry ...
Definition: TProcessUUID.cxx:78
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TUUID
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
Definition: TUUID.h:42
TProcessUUID::operator=
TProcessUUID & operator=(const TProcessUUID &)
unsigned int
TProcessUUID::RemoveUUID
void RemoveUUID(UInt_t number)
Remove entry number in the list of uuids.
Definition: TProcessUUID.cxx:142
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TProcessUUID::~TProcessUUID
virtual ~TProcessUUID()
Destructor.
Definition: TProcessUUID.cxx:66
TList
A doubly linked list.
Definition: TList.h:44