#include <npacket.h>
Inheritance diagram for regina::NPacket::ChangeEventBlock:
Public Member Functions | |
ChangeEventBlock (NPacket *packetToBlock, bool fireOnDestruction=true) | |
Creates a new change event block for the given packet. | |
~ChangeEventBlock () | |
Destructor that removes the single change event block that was created by this object. |
As long as this object is in existence, listeners will not be notified of any changes to this packet.
It can sometimes be useful to temporarily block change events during large modifications that are likely to generate change events at inopportune times during processing.
Note that change event blocks are cumulative, i.e., if several blocks are created then all of these blocks must be destroyed before listeners will be notified of change events again.
|
Creates a new change event block for the given packet.
As a convenience, passing
|
|
Destructor that removes the single change event block that was created by this object. In addition, a change event will be fired if it was requested upon construction. |