Qore Programming Language Reference Manual  0.8.13
QC_Breakpoint.dox.h
1 namespace Qore {
4 
26 class Breakpoint {
27 
28 public:
30 /***
31  */
32 nothing addThreadId(int tid);
33 
34 public:
36 /***
37  * @param new_pgm Program to be assigned
38  */
39 nothing assignProgram(ProgramControl pgm);
40 
41 public:
43 /***
44  */
45 nothing assignStatement(int statementId);
46 
47 public:
49 /***
50  */
51 nothing clearThreadIds();
52 
53 public:
55 /***
56  */
57  constructor();
58 
59 public:
61 /***/
62  copy();
63 
64 public:
66 /***
67  */
68  destructor();
69 
70 public:
72 
76 int getBreakpointId();
77 
78 public:
80 /***
81  */
82 bool getEnabled();
83 
84 public:
86 /***/
87 int getPolicy();
88 
89 public:
91 /*** @see @ref Qore::Program::resolveStatementId() "Program::resolveStatementId()"
92  */
94 
95 public:
97 /***
98  */
100 
101 public:
103 /***
104  */
105 bool isThreadId(softint tid);
106 
107 public:
109 /***
110  */
111 nothing removeThreadId(int tid);
112 
113 public:
115 /***
116  */
117 nothing setEnabled(bool enabled);
118 
119 public:
121 
123 nothing setPolicy(softint policy);
124 
125 public:
127 /***
128  */
129 nothing setThreadIds(softlist tidList);
130 
131 public:
133 /***
134  */
135 nothing unassignProgram();
136 
137 public:
139 /***
140  */
141 nothing unassignStatement(int statementId);
142 
143 public:
145 
148 static Breakpoint resolveBreakpointId(int breakpointId);
149 };
157 
159  const BreakpointPolicyAccept = BKP_PO_ACCEPT;
161  const BreakpointPolicyNone = BKP_PO_NONE;
163  const BreakpointPolicyReject = BKP_PO_REJECT;
165 };
nothing assignProgram(ProgramControl pgm)
Assign Program to breakpoint.
copy()
Creates copy of breakpoint object.
bool getEnabled()
Get enabled state of breakpoint.
nothing setEnabled(bool enabled)
Set enabled state to breakpoint.
const BreakpointPolicyNone
Thread list is ignored.
Definition: QC_Breakpoint.dox.h:161
const BreakpointPolicyReject
Consider all thread except those enumerated in thread list.
Definition: QC_Breakpoint.dox.h:163
static Breakpoint resolveBreakpointId(int breakpointId)
Get instance of breakpoint id.
nothing removeThreadId(int tid)
Remove thread ID from the list.
list getStatementIds()
Get list of statements.
nothing unassignProgram()
Unassign Program from breakpoint and deletes all statement references.
constructor()
Creates the breakpoint object with notification functions without any functionality.
list getThreadIds()
Get list of the thread IDs.
list list(...)
Returns an untyped list of the arguments passed at the top level.
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:41
nothing addThreadId(int tid)
Add thread ID to the list.
int getBreakpointId()
Get breakpoint id.
nothing setPolicy(softint policy)
Defines policy how thread list is evaluated. See Breakpoint Policy Constants.
int getPolicy()
Get policy how thread list is evaluated. See Breakpoint Policy Constants.
nothing clearThreadIds()
Clear list of the thread IDs.
const BreakpointPolicyAccept
Consider only threads enumerated in thread list.
Definition: QC_Breakpoint.dox.h:159
Breakpoint class supports breakpoint setting for particular Qore ProgramControl when debugging...
Definition: QC_Breakpoint.dox.h:26
nothing unassignStatement(int statementId)
Unassign breakpoint from statement.
nothing assignStatement(int statementId)
Assign breakpoint to a statement.
bool isThreadId(softint tid)
Check if thread is ID in list.
nothing setThreadIds(softlist tidList)
Set list of the thread IDs.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
destructor()
Unlinks from Breakpoint object and dereferences it.