-
Notifications
You must be signed in to change notification settings - Fork 16
/
normalpages.h
46 lines (34 loc) · 905 Bytes
/
normalpages.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _NORMALPAGES_H
#define _NORMALPAGES_H
#include <list>
#include "debug.h"
#include "ttxpagestream.h"
// list of normal pages
namespace vbit
{
class NormalPages
{
public:
/** Default constructor */
NormalPages(Debug *debug);
/** Default destructor */
virtual ~NormalPages();
TTXPageStream* NextPage();
void addPage(TTXPageStream* p);
protected:
private:
Debug* _debug;
std::list<TTXPageStream*> _NormalPagesList;
std::list<TTXPageStream*>::iterator _iter;
TTXPageStream* _page;
bool _needSorting;
template <typename TTXPageStream>
struct pageLessThan
{
bool operator()(const TTXPageStream *a, const TTXPageStream *b) const{
return a->GetPageNumber() < b->GetPageNumber();
}
};
};
}
#endif // _NORMALPAGES_H