Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions

bsls::PreconditionsHandler Class Reference

#include <bsls_preconditions.h>

List of all members.

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 ()

Detailed Description

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


Member Typedef Documentation

PreconditionHandlerType is an alias for a pointer to a function returning void and taking no parameters.


Member Function Documentation

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.


The documentation for this class was generated from the following file: