root/src/hits_circle.h

Revision 5, 0.6 KB (checked in by nick, 3 years ago)
Line 
1#ifndef _HITS_CIRCLE_H_
2#define _HITS_CIRCLE_H_
3
4class Hits_Circle : public Circle
5{
6public:
7        int create(unsigned int passed_size);
8        int insert(struct logbits lb);
9        int walk(struct logbits **lb);
10
11        void updatestats(void) {}
12        time_t oldest(void);
13
14        double getreqcount(void) { return reqcount; }
15        double getbytecount(void) { return bytecount; }
16        double getsummary(int r_c) { return rc_summary[r_c]; }
17
18private:
19        int resize(int newsize);
20
21        double reqcount, bytecount;
22        double rc_summary[6];
23
24        typedef struct logbits circle_struct;
25        circle_struct *tab;
26        int size; /* total size of circle table */
27        int pos; /* where are we now? */
28
29        int walkpos;
30};
31
32#endif
Note: See TracBrowser for help on using the browser.