All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PcpLifeboat Class Reference

Structure used to temporarily retain layers and layerStacks within a code block. More...

Public Member Functions

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
 Returns reference to the set of layer stacks currently being held in the lifeboat. More...
 
void Swap (PcpLifeboat &other)
 Swap the contents of this and other. More...
 

Detailed Description

Structure used to temporarily retain layers and layerStacks within a code block.

Analogous to the autorelease pool in obj-c.

Definition at line 141 of file changes.h.

Member Function Documentation

const std::set<PcpLayerStackRefPtr>& GetLayerStacks ( ) const

Returns reference to the set of layer stacks currently being held in the lifeboat.

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.

void Swap ( PcpLifeboat other)

Swap the contents of this and other.


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