openMSX
BreakPoint.hh
Go to the documentation of this file.
1 #ifndef BREAKPOINT_HH
2 #define BREAKPOINT_HH
3 
4 #include "BreakPointBase.hh"
5 #include "openmsx.hh"
6 
7 namespace openmsx {
8 
9 /** Base class for CPU breakpoints.
10  * For performance reasons every bp is associated with exactly one
11  * (immutable) address.
12  */
13 class BreakPoint final : public BreakPointBase
14 {
15 public:
16  BreakPoint(word address, TclObject command, TclObject condition, bool once);
17 
18  word getAddress() const { return address; }
19  unsigned getId() const { return id; }
20 
21 private:
22  unsigned id;
23  word address;
24 
25  static unsigned lastId;
26 };
27 
28 } // namespace openmsx
29 
30 #endif
bool getEnum() const noexcept
Definition: EnumSetting.hh:96
word getAddress() const
Definition: BreakPoint.hh:18
BreakPoint(word address, TclObject command, TclObject condition, bool once)
Definition: BreakPoint.cc:8
Base class for CPU break and watch points.
unsigned getId() const
Definition: BreakPoint.hh:19