Loading...
Searching...
No Matches
PcpLifeboat Class Reference

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.
 

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 161 of file changes.h.

Member Function Documentation

◆ GetLayerStacks()

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

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

◆ Retain() [1/2]

void Retain ( const PcpLayerStackRefPtr &  layerStack)

Ensure that layerStack exists until this object is destroyed.

◆ Retain() [2/2]

void Retain ( const SdfLayerRefPtr layer)

Ensure that layer exists until this object is destroyed.

◆ Swap()

void Swap ( PcpLifeboat other)

Swap the contents of this and other.


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