class post
|
A post condition class. More... |
|
|
Public Methods
- post (level lvl, fn_t fn, const source_pos &pos)
- post (level lvl, dbg_source src, fn_t fn, const source_pos &pos)
- post (fn_t fn, const source_pos &pos)
- post (dbg_source src, fn_t fn, const source_pos &pos)
- ~post ()
- post (level, fn_t, void *)
- post (level, dbg_source, fn_t, void *)
- post (fn_t, void *)
- post (dbg_source, fn_t, void *)
- ~post ()
Public Members
A post condition class. Unlike post_mem_fun, this class
calls a non-member function with signature:
Otherwise, use it identically to the post_mem_fun.
See also: post_mem_fun
typedef bool (*fn_t) ()
| (*fn_t) |
The type of the constraint function. It returns a bool and
takes no parameters.
post (level lvl, fn_t fn, const source_pos &pos)
| post |
Parameters:
lvl | Diagnostic level
|
fn | Post condition function
|
here | Supply DBG_HERE
|
post (level lvl, dbg_source src, fn_t fn, const source_pos &pos)
| post |
Parameters:
lvl | Diagnostic level
|
src | String describing the diagnostic source
|
fn | Post condition function
|
here | Supply DBG_HERE
|
post (fn_t fn, const source_pos &pos)
| post |
Overloaded version of constructor which defaults to the
warning diagnostic level.
Parameters:
fn | Post condition function
|
here | Supply DBG_HERE
|
post (dbg_source src, fn_t fn, const source_pos &pos)
| post |
Overloaded version of constructor which defaults to the
warning diagnostic level.
Parameters:
src | String describing the diagnostic source
|
fn | Post condition function
|
here | Supply DBG_HERE
|
The destructor asserts the post condition.
post (level, fn_t, void *)
| post |
post (level, dbg_source, fn_t, void *)
| post |
post (dbg_source, fn_t, void *)
| post |
Generated by: pg1 on imgpc030 on Tue Sep 16 13:46:16 2003, using kdoc 2.0a54. |