XrdOucRash< K, V > Class Template Reference

#include <XrdOucRash.hh>

List of all members.

Public Member Functions

V * Add (K KeyVal, V &KeyData, time_t LifeTime=0, XrdOucRash_Options opt=Rash_default)
int Del (K KeyVal)
V * Find (K KeyVal, time_t *KeyTime=0)
int Num ()
void Purge ()
V * Rep (K KeyVal, V &KeyData, const int LifeTime=0, XrdOucRash_Options opt=Rash_default)
V * Apply (int(*func)(K, V, void *), void *Arg)
 XrdOucRash ()
 ~XrdOucRash ()

Private Member Functions

V * Apply (XrdOucRash_Tent< K, V > *tab, int(*func)(K, V, void *), void *Arg)
XrdOucRash_Item< K, V > * Lookup (K theKey, XrdOucRash_Tent< K, V > **tloc)
void Insert (K theKey, XrdOucRash_Item< K, V > *theItem)
unsigned long long key2ull (K theKey)

Private Attributes

XrdOucRash_Tent< K, V > rashTable [16]
int rashnum


Detailed Description

template<typename K, typename V>
class XrdOucRash< K, V >

Definition at line 95 of file XrdOucRash.hh.


Constructor & Destructor Documentation

template<typename K, typename V>
XrdOucRash< K, V >::XrdOucRash (  )  [inline]

Definition at line 149 of file XrdOucRash.hh.

template<typename K, typename V>
XrdOucRash< K, V >::~XrdOucRash (  )  [inline]

Definition at line 150 of file XrdOucRash.hh.


Member Function Documentation

template<typename K, typename V>
V* XrdOucRash< K, V >::Add ( KeyVal,
V &  KeyData,
time_t  LifeTime = 0,
XrdOucRash_Options  opt = Rash_default 
)

Referenced by XrdProofdProofServMgr::CleanupLostProofServ(), and XrdOucRash< Sockdescr, Sockid >::Rep().

template<typename K, typename V>
int XrdOucRash< K, V >::Del ( KeyVal  ) 

Referenced by XrdClientPSock::EstablishParallelSock(), XrdClientPSock::SaveSocket(), and XrdClientPSock::UnBanSockDescr().

template<typename K, typename V>
V* XrdOucRash< K, V >::Find ( KeyVal,
time_t *  KeyTime = 0 
)

Referenced by XrdProofdProofServMgr::CleanupLostProofServ(), XrdClientPSock::GetSock(), XrdClientPSock::GetSockId(), and XrdClientPSock::SaveSocket().

template<typename K, typename V>
int XrdOucRash< K, V >::Num (  )  [inline]

Definition at line 125 of file XrdOucRash.hh.

Referenced by XrdClientPSock::GetSockIdCount().

template<typename K, typename V>
void XrdOucRash< K, V >::Purge (  ) 

Referenced by XrdClientPSock::Disconnect(), and XrdOucRash< Sockdescr, Sockid >::~XrdOucRash().

template<typename K, typename V>
V* XrdOucRash< K, V >::Rep ( KeyVal,
V &  KeyData,
const int  LifeTime = 0,
XrdOucRash_Options  opt = Rash_default 
) [inline]

Definition at line 133 of file XrdOucRash.hh.

Referenced by XrdClientPSock::BanSockDescr(), XrdClientPSock::EstablishParallelSock(), XrdClientPSock::TryConnect(), and XrdClientPSock::TryConnectParallelSock().

template<typename K, typename V>
V* XrdOucRash< K, V >::Apply ( int(*)(K, V, void *)  func,
void *  Arg 
) [inline]

Definition at line 146 of file XrdOucRash.hh.

Referenced by XrdOucRash< Sockdescr, Sockid >::Apply(), and XrdClientPSock::Disconnect().

template<typename K, typename V>
V* XrdOucRash< K, V >::Apply ( XrdOucRash_Tent< K, V > *  tab,
int(*)(K, V, void *)  func,
void *  Arg 
) [private]

template<typename K, typename V>
XrdOucRash_Item<K,V>* XrdOucRash< K, V >::Lookup ( theKey,
XrdOucRash_Tent< K, V > **  tloc 
) [private]

template<typename K, typename V>
void XrdOucRash< K, V >::Insert ( theKey,
XrdOucRash_Item< K, V > *  theItem 
) [private]

template<typename K, typename V>
unsigned long long XrdOucRash< K, V >::key2ull ( theKey  )  [private]


Member Data Documentation

template<typename K, typename V>
XrdOucRash_Tent<K,V> XrdOucRash< K, V >::rashTable[16] [private]

Definition at line 159 of file XrdOucRash.hh.

Referenced by XrdOucRash< Sockdescr, Sockid >::Apply().

template<typename K, typename V>
int XrdOucRash< K, V >::rashnum [private]

Definition at line 160 of file XrdOucRash.hh.

Referenced by XrdOucRash< Sockdescr, Sockid >::Num(), and XrdOucRash< Sockdescr, Sockid >::XrdOucRash().


The documentation for this class was generated from the following file:
Generated on Tue Jul 5 16:50:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1