Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
packetprocessor
RegisterLookup.hpp
Go to the documentation of this file.
1
6
#pragma once
7
#ifndef BIL_REGISTERLOOKUP_HPP
8
#define BIL_REGISTERLOOKUP_HPP
9
10
#include <vector>
11
#include <
bitstream/RegisterAddress.hpp
>
12
13
14
namespace
bil {
15
16
class
Register;
17
18
25
class
RegisterLookup
{
26
public
:
27
28
/**********************************************************************/
29
/* CONSTRUCTION / DESTRUCTION */
30
/**********************************************************************/
31
37
RegisterLookup
(
RegisterAddress::address_t
highestAddress);
38
39
40
/**********************************************************************/
41
/* ADDING AND REMOVING OF REGISTER REFERENCES */
42
/**********************************************************************/
43
49
void
add
(
Register
& reg);
50
57
bool
remove
(
RegisterAddress::address_t
registerAddress);
58
59
60
/**********************************************************************/
61
/* REGISTER REFERENCE LOOKUP */
62
/**********************************************************************/
63
69
Register
*
lookup
(
RegisterAddress::address_t
registerAddress)
const
;
70
71
72
private
:
73
74
std::vector<Register*> m_registers;
75
76
};
77
78
}
79
80
#endif
Generated on Wed Aug 8 2012 21:57:40 for Bitstream Interpretation Library (BIL) by
1.8.1.1