class post

A post condition class. More...

Full namedbg::post
Definition#include <dbg.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members


Detailed Description

A post condition class. Unlike post_mem_fun, this class calls a non-member function with signature:


     bool some_function();

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:
lvlDiagnostic level
fnPost condition function
hereSupply DBG_HERE

 post (level lvl, dbg_source src, fn_t fn, const source_pos &pos)

post

Parameters:
lvlDiagnostic level
srcString describing the diagnostic source
fnPost condition function
hereSupply DBG_HERE

 post (fn_t fn, const source_pos &pos)

post

Overloaded version of constructor which defaults to the warning diagnostic level.

Parameters:
fnPost condition function
hereSupply 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:
srcString describing the diagnostic source
fnPost condition function
hereSupply DBG_HERE

 ~post ()

~post

The destructor asserts the post condition.

 post (level, fn_t, void *)

post

 post (level, dbg_source, fn_t, void *)

post

 post (fn_t, void *)

post

 post (dbg_source, fn_t, void *)

post

 ~post ()

~post


Generated by: pg1 on imgpc030 on Tue Sep 16 13:46:16 2003, using kdoc 2.0a54.