#include <XrdSsiRRTable.hh>
template<class T>
class XrdSsiRRTable< T >
Definition at line 38 of file XrdSsiRRTable.hh.
◆ XrdSsiRRTable()
◆ ~XrdSsiRRTable()
◆ Add()
Definition at line 42 of file XrdSsiRRTable.hh.
43 {rrtMutex.Lock();
47 }
48 rrtMutex.UnLock();
49 }
◆ Clear()
Definition at line 51 of file XrdSsiRRTable.hh.
51{rrtMutex.Lock(); theMap.clear(); rrtMutex.UnLock();}
◆ Del()
template<class T>
void XrdSsiRRTable< T >::Del |
( |
uint64_t | itemID, |
|
|
bool | finit = false ) |
|
inline |
Definition at line 53 of file XrdSsiRRTable.hh.
55 if (baseItem && baseKey ==
itemID)
56 {
if (
finit) baseItem->Finalize();
57 baseItem = 0;
58 } else {
61 if (
it != theMap.end())
it->second->Finalize();
63 }
64 }
65 }
◆ LookUp()
Definition at line 67 of file XrdSsiRRTable.hh.
69 if (baseItem && baseKey ==
itemID)
return baseItem;
71 return (
it == theMap.end() ? 0 :
it->second);
72 }
◆ Num()
Definition at line 74 of file XrdSsiRRTable.hh.
74{return theMap.size() + (baseItem ? 1 : 0);}
◆ Reset()
Definition at line 76 of file XrdSsiRRTable.hh.
79 while(
it != theMap.end())
80 {
it->second->Finalize();
82 }
83 theMap.clear();
84 if (baseItem)
85 {baseItem->Finalize();
86 baseItem = 0;
87 }
88 }
Referenced by ~XrdSsiRRTable().
The documentation for this class was generated from the following file: