xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdFrm
XrdFrmTSort.hh
Go to the documentation of this file.
1
#ifndef __FRMTSORT__
2
#define __FRMTSORT__
3
/******************************************************************************/
4
/* */
5
/* X r d F r m T S o r t . h h */
6
/* */
7
/* (c) 2009 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC02-76-SFO0515 with the Department of Energy */
11
/******************************************************************************/
12
13
class
XrdFrmFileset
;
14
15
class
XrdFrmTSort
16
{
17
public
:
18
19
int
Add
(
XrdFrmFileset
*fsp);
20
21
int
Count
() {
return
numEnt
;}
22
23
XrdFrmFileset
*
Oldest
();
24
25
void
Purge
();
26
27
XrdFrmTSort
(
int
szSort=0) :
sortSZ
(szSort) {
Reset
();}
28
~XrdFrmTSort
() {
Purge
();}
29
30
private
:
31
int
Bin
(
XrdFrmFileset
*fsp,
int
j,
int
Shift);
32
XrdFrmFileset
*
Insert
(
XrdFrmFileset
*newP,
XrdFrmFileset
*oldP);
33
void
Reset
();
34
35
static
const
int
SCshift
= 0;
36
static
const
int
MNshift
= 6;
37
static
const
int
HRshift
= 12;
38
static
const
int
tMask
= 0x3f;
39
static
const
int
dVal
= 24*60*60;
40
41
XrdFrmFileset
*
FSTab
[4][64];
42
time_t
baseT
;
43
int
sortSZ
;
44
int
numEnt
;
45
46
int
DYent
;
// [0,DYent]
47
int
HRent
;
// [1,HRent]
48
int
MNent
;
// [2,MNent]
49
int
SCent
;
// [3,SCent]
50
};
51
#endif
Generated by
1.8.1.2