IndexMapTool.h
Go to the documentation of this file.
1 // IndexMapTool.h
2 
3 // David Adams
4 // June 2018
5 //
6 // Interface for tools that map one index to another, e.g.
7 // online to offline channel or vice versa.
8 
9 #ifndef IndexMapTool_H
10 #define IndexMapTool_H
11 
12 class IndexMapTool {
13 
14 public:
15 
16  using Index = unsigned int;
17 
18  static Index badIndex() { return -1; }
19 
20  virtual ~IndexMapTool() =default;
21 
22  virtual Index get(Index idx) const =0;
23 
24 };
25 
26 #endif
virtual ~IndexMapTool()=default
unsigned int Index
Definition: IndexMapTool.h:16
static Index badIndex()
Definition: IndexMapTool.h:18