Qore Programming Language Reference Manual  1.0.8
QC_Breakpoint.dox.h
1 
3 namespace Qore {
5 
27 class Breakpoint {
28 
29 public:
31 /***
32  */
33 nothing addThreadId(int tid);
34 
35 public:
37 /***
38  * @param new_pgm Program to be assigned
39  */
40 nothing assignProgram(ProgramControl pgm);
41 
42 public:
44 /***
45  */
46 nothing assignStatement(int statementId);
47 
48 public:
50 /***
51  */
52 nothing clearThreadIds();
53 
54 public:
56 /***
57  */
58  constructor();
59 
60 public:
62 /***/
63  copy();
64 
65 public:
67 /***
68  */
69  destructor();
70 
71 public:
73 
77 int getBreakpointId();
78 
79 public:
81 /***
82  */
83 bool getEnabled();
84 
85 public:
87 /***/
88 int getPolicy();
89 
90 public:
92 
102 
103 public:
105 /*** @see @ref Qore::Program::resolveStatementId() "Program::resolveStatementId()"
106  */
107 list<int> getStatementIds();
108 
109 public:
111 /***
112  */
113 list<int> getThreadIds();
114 
115 public:
117 /***
118  */
119 bool isThreadId(softint tid);
120 
121 public:
123 /***
124  */
125 nothing removeThreadId(int tid);
126 
127 public:
129 /***
130  */
131 nothing setEnabled(bool enabled);
132 
133 public:
135 
137 nothing setPolicy(softint policy);
138 
139 public:
141 /***
142  */
143 nothing setThreadIds(softlist<softint> tidList);
144 
145 public:
147 /***
148  */
149 nothing unassignProgram();
150 
151 public:
153 /***
154  */
155 nothing unassignStatement(int statementId);
156 
157 public:
159 
162 static Breakpoint resolveBreakpointId(int breakpointId);
163 };
170 
172  const BreakpointPolicyAccept = BKP_PO_ACCEPT;
175  const BreakpointPolicyNone = BKP_PO_NONE;
177  const BreakpointPolicyReject = BKP_PO_REJECT;
179 }
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:175
const BreakpointPolicyReject
Consider all thread except those enumerated in thread list.
Definition: QC_Breakpoint.dox.h:177
list< int > getStatementIds()
Get list of statements.
static Breakpoint resolveBreakpointId(int breakpointId)
Get instance of breakpoint id.
nothing removeThreadId(int tid)
Remove thread ID from the list.
nothing unassignProgram()
Unassign Program from breakpoint and deletes all statement references.
constructor()
Creates the breakpoint object with notification functions without any functionality.
The ProgramControl class provides safe information about a Qore program.
Definition: QC_ProgramControl.dox.h:45
nothing addThreadId(int tid)
Add thread ID to the list.
int getBreakpointId()
Get breakpoint id.
ProgramControl getProgram()
Get ProgramControl assigned to the breakpoint.
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 setThreadIds(softlist< softint > tidList)
Set list of the thread IDs.
nothing clearThreadIds()
Clear list of the thread IDs.
const BreakpointPolicyAccept
Consider only threads enumerated in thread list.
Definition: QC_Breakpoint.dox.h:173
Breakpoint class supports breakpoint setting for particular Qore ProgramControl when debugging...
Definition: QC_Breakpoint.dox.h:27
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.
list< int > getThreadIds()
Get list of the thread IDs.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
destructor()
Unlinks from Breakpoint object and dereferences it.