Quick Links: |
#include <bsls_preconditions.h>
Public Types | |
typedef void(* | PreconditionHandlerType )() |
Static Public Member Functions | |
static PreconditionHandlerType | getBeginHandler () |
static PreconditionHandlerType | getEndHandler () |
static void | installHandlers (PreconditionHandlerType beginHandler, PreconditionHandlerType endHandler) |
static void | invokeBeginHandler () |
static void | invokeEndHandler () |
static void | noOpHandler () |
This utility class maintains pointers containing the addresses of functions invoked by the BSLS_PRECONDITIONS_BEGIN
and BSLS_PRECONDITIONS_END
macros, and provides methods to manipulate and utilize those functions.
See Component bsls_preconditions
typedef void(* bsls::PreconditionsHandler::PreconditionHandlerType)() |
PreconditionHandlerType
is an alias for a pointer to a function returning void
and taking no parameters.
static PreconditionHandlerType bsls::PreconditionsHandler::getBeginHandler | ( | ) | [static] |
Return the previously installed s_beginHandler
.
static PreconditionHandlerType bsls::PreconditionsHandler::getEndHandler | ( | ) | [static] |
Return the previously installed s_endHandler
.
static void bsls::PreconditionsHandler::installHandlers | ( | PreconditionHandlerType | beginHandler, | |
PreconditionHandlerType | endHandler | |||
) | [static] |
Store the specified beginHandler
and endHandler
function pointers to the static
member variables.
static void bsls::PreconditionsHandler::invokeBeginHandler | ( | ) | [static] |
Invoke the previously installed s_beginHandler
function.
static void bsls::PreconditionsHandler::invokeEndHandler | ( | ) | [static] |
Invoke the previously installed s_endHandler
function.
static void bsls::PreconditionsHandler::noOpHandler | ( | ) | [static] |
Do nothing.