Bitstream Interpretation Library (BIL)  0.1
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>
12 
13 
14 namespace bil {
15 
16  class Register;
17 
18 
26  public:
27 
28  /**********************************************************************/
29  /* CONSTRUCTION / DESTRUCTION */
30  /**********************************************************************/
31 
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