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

#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...
 

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

Constructor & Destructor Documentation

PcpLifeboat::PcpLifeboat ( )
PcpLifeboat::~PcpLifeboat ( )

Member Function Documentation

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.


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