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