xrootd
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdOucRash< K, V > Class Template Reference

#include <XrdOucRash.hh>

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
 

Constructor & Destructor Documentation

◆ XrdOucRash()

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

◆ ~XrdOucRash()

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

Member Function Documentation

◆ Add()

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

Referenced by XrdOucRash< K, V >::Rep().

◆ Apply() [1/2]

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

◆ Apply() [2/2]

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

◆ Del()

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

◆ Find()

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

◆ Insert()

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

◆ key2ull()

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

◆ Lookup()

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

◆ Num()

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

◆ Purge()

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

◆ Rep()

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

Member Data Documentation

◆ rashnum

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

◆ rashTable

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

The documentation for this class was generated from the following file: