BitmapProxyTemporaryDisableGuard Class Reference
 
 
 
BitmapProxyTemporaryDisableGuard Class Reference

#include <bitmap.h>

Inheritance diagram for BitmapProxyTemporaryDisableGuard:
MaxHeapOperators

Class Description

Useful Guard class for temporarily disabling bitmap proxies.

Bitmap proxies are disabled in the constructor, and disabled in the destructor, using NOTIFY_PROXY_TEMPORARY_DISABLE_START and NOTIFY_PROXY_TEMPORARY_DISABLE_END.

For more details on the way this disables bitmap proxies, see NOTIFY_PROXY_TEMPORARY_DISABLE_START.

Recursive calls are handled correctly; a count of recursive calls is maintained and bitmap proxies are only re-enabled once all instances of this class have been destroyed.

Public Member Functions

BMMExport  BitmapProxyTemporaryDisableGuard (bool doDisable=true)
  Constructor, disables bitmap proxies.
BMMExport  ~BitmapProxyTemporaryDisableGuard ()
  Destructor, re-enables bitmap proxies.

Constructor & Destructor Documentation

BMMExport BitmapProxyTemporaryDisableGuard ( bool  doDisable = true ) [explicit]

Constructor, disables bitmap proxies.

Parameters:
[in] doDisable If true, bitmap proxies are disabled. If false, nothing is done (the class is essentially disabled). This parameter is necessary to conditionally disable proxies.

Destructor, re-enables bitmap proxies.