XRootD
XrdOucRash_Item< K, V > Class Template Reference

#include <XrdOucRash.hh>

+ Collaboration diagram for XrdOucRash_Item< K, V >:

Public Member Functions

 XrdOucRash_Item (K &KeyVal, V &KeyData, time_t KeyTime)
 
 ~XrdOucRash_Item ()
 
int Count ()
 
V * Data ()
 
Key ()
 
void Set (V &keyData, time_t newtime)
 
time_t Time ()
 
void Update (int newcount, time_t newtime)
 

Detailed Description

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

Definition at line 58 of file XrdOucRash.hh.

Constructor & Destructor Documentation

◆ XrdOucRash_Item()

template<typename K , typename V >
XrdOucRash_Item< K, V >::XrdOucRash_Item ( K &  KeyVal,
V &  KeyData,
time_t  KeyTime 
)
inline

Definition at line 79 of file XrdOucRash.hh.

82  {keyval = KeyVal;
83  keydata = KeyData;
84  keytime = KeyTime;
85  keycount= 0;
86  }

◆ ~XrdOucRash_Item()

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

Definition at line 88 of file XrdOucRash.hh.

88 {}

Member Function Documentation

◆ Count()

template<typename K , typename V >
int XrdOucRash_Item< K, V >::Count ( )
inline

Definition at line 61 of file XrdOucRash.hh.

61 {return keycount;}

Referenced by XrdOucRash< K, V >::Add(), and XrdOucRash< K, V >::Del().

+ Here is the caller graph for this function:

◆ Data()

template<typename K , typename V >
V* XrdOucRash_Item< K, V >::Data ( )
inline

Definition at line 63 of file XrdOucRash.hh.

63 {return &keydata;}

Referenced by XrdOucRash< K, V >::Add(), and XrdOucRash< K, V >::Find().

+ Here is the caller graph for this function:

◆ Key()

template<typename K , typename V >
K XrdOucRash_Item< K, V >::Key ( )
inline

Definition at line 65 of file XrdOucRash.hh.

65 {return keyval;}

◆ Set()

template<typename K , typename V >
void XrdOucRash_Item< K, V >::Set ( V &  keyData,
time_t  newtime 
)
inline

Definition at line 74 of file XrdOucRash.hh.

75  {keydata = keyData;
76  keytime = newtime;
77  }

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

+ Here is the caller graph for this function:

◆ Time()

template<typename K , typename V >
time_t XrdOucRash_Item< K, V >::Time ( )
inline

Definition at line 67 of file XrdOucRash.hh.

67 {return keytime;}

Referenced by XrdOucRash< K, V >::Add(), and XrdOucRash< K, V >::Find().

+ Here is the caller graph for this function:

◆ Update()

template<typename K , typename V >
void XrdOucRash_Item< K, V >::Update ( int  newcount,
time_t  newtime 
)
inline

Definition at line 69 of file XrdOucRash.hh.

70  {keycount = newcount;
71  if (newtime) keytime = newtime;
72  }

Referenced by XrdOucRash< K, V >::Add(), and XrdOucRash< K, V >::Del().

+ Here is the caller graph for this function:

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