blob: 1a04e62e770727ec54ec702672600934882fb929 (
plain) (
blame)
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
|
#pragma once
#include "address.h"
namespace NIPREG {
class TChecker {
public:
virtual ~TChecker() {}
virtual bool CheckNext(const TAddress& first, const TAddress& last) = 0;
void CheckNextFatal(const TAddress& first, const TAddress& last);
};
class TFlatChecker: public TChecker {
private:
TAddress PrevLast;
bool HasState;
public:
TFlatChecker();
virtual bool CheckNext(const TAddress& first, const TAddress& last);
};
class TIntersectingChecker: public TChecker {
private:
TAddress PrevFirst;
TAddress PrevLast;
bool HasState;
public:
TIntersectingChecker();
virtual bool CheckNext(const TAddress& first, const TAddress& last);
};
}
|