|
Structure used to temporarily retain layers and layerStacks within a code block. More...
#include <changes.h>
Public Member Functions | |
void | Retain (const SdfLayerRefPtr &layer) |
Ensure that layer exists until this object is destroyed. | |
void | Retain (const PcpLayerStackRefPtr &layerStack) |
Ensure that layerStack exists until this object is destroyed. | |
const std::set< PcpLayerStackRefPtr > & | GetLayerStacks () const |
Returns reference to the set of layer stacks currently being held in the lifeboat. | |
void | Swap (PcpLifeboat &other) |
Swap the contents of this and other . | |
Structure used to temporarily retain layers and layerStacks within a code block.
Analogous to the autorelease pool in obj-c.
const std::set< PcpLayerStackRefPtr > & GetLayerStacks | ( | ) | const |
Returns reference to the set of layer stacks currently being held in the lifeboat.
void Retain | ( | const PcpLayerStackRefPtr & | layerStack | ) |
Ensure that layerStack
exists until this object is destroyed.
void Retain | ( | const SdfLayerRefPtr & | layer | ) |
Ensure that layer
exists until this object is destroyed.
void Swap | ( | PcpLifeboat & | other | ) |
Swap the contents of this and other
.