Logo ROOT   6.08/07
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 #ifndef ROOT_TProcessID
26 #include "TProcessID.h"
27 #endif
28 
29 class THashList;
30 class TBits;
31 class TUUID;
32 class TObjString;
33 
34 class TProcessUUID : public TProcessID {
35 
36 private:
37  TProcessUUID(const TProcessID&); // TProcessUUID are not copiable.
38  TProcessUUID &operator=(const TProcessUUID&); // TProcessUUID are not copiable.
39 
40 protected:
41  TList *fUUIDs; //Global list of TUUIDs
42  TBits *fActive; //Table of active UUIDs
43 
44 public:
45 
46  TProcessUUID();
47  virtual ~TProcessUUID();
48  UInt_t AddUUID(TUUID &uuid, TObject *obj);
49  UInt_t AddUUID(const char *uuids);
50  TObjString *FindUUID(UInt_t number) const;
51  TBits *GetActive() const {return fActive;}
52  TList *GetUUIDs() const {return fUUIDs;}
53  void RemoveUUID(UInt_t number);
54 
55  ClassDef(TProcessUUID,1) //TProcessID managing UUIDs
56 };
57 
58 #endif
This class is a specialized TProcessID managing the list of UUIDs.
Definition: TProcessUUID.h:34
Collectable string class.
Definition: TObjString.h:32
TProcessUUID()
Default constructor.
TList * fUUIDs
Definition: TProcessUUID.h:41
This class defines a UUID (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDent...
Definition: TUUID.h:44
#define ClassDef(name, id)
Definition: Rtypes.h:254
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
Definition: THashList.h:36
TBits * GetActive() const
Definition: TProcessUUID.h:51
A TProcessID identifies a ROOT job in a unique way in time and space.
Definition: TProcessID.h:73
A doubly linked list.
Definition: TList.h:47
unsigned int UInt_t
Definition: RtypesCore.h:42
TBits * fActive
Definition: TProcessUUID.h:42
TList * GetUUIDs() const
Definition: TProcessUUID.h:52
virtual ~TProcessUUID()
Destructor.
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 ...
TProcessUUID & operator=(const TProcessUUID &)
Mother of all ROOT objects.
Definition: TObject.h:37
Container of bits.
Definition: TBits.h:33
TObjString * FindUUID(UInt_t number) const
Find the TObjString by slot number.
void RemoveUUID(UInt_t number)
Remove entry number in the list of uuids.