# Cinder

# cinder::cocoa::SafeUiImage Class Reference

A class which encapsulate a UIImage and an associated CGImageRef in order to work around memory ownership ambiguities in Cocoa Touch. More...

`#include <CinderCocoaTouch.h>`

List of all members.

## Public Types
typedef shared_ptr< std::pair < UIImage *, CGImageRef > > SafeUiImage::* | unspecified_bool_type
## Public Member Functions
| SafeUiImage ()
| SafeUiImage (UIImage *uiImage, CGImageRef imageRef)
| operator UIImage * () const
| operator unspecified_bool_type ()

## Detailed Description

A class which encapsulate a UIImage and an associated CGImageRef in order to work around memory ownership ambiguities in Cocoa Touch.

## Member Typedef Documentation

typedef shared_ptr<std::pair<UIImage*,CGImageRef> > SafeUiImage::* cinder::cocoa::SafeUiImage::unspecified_bool_type

## Constructor & Destructor Documentation

cinder::cocoa::SafeUiImage::SafeUiImage | ( |  | ) |

cinder::cocoa::SafeUiImage::SafeUiImage | ( | UIImage * | uiImage,
|  | CGImageRef | imageRef |
| ) |  |  |

## Member Function Documentation

cinder::cocoa::SafeUiImage::operator UIImage * | ( |  | ) | const

cinder::cocoa::SafeUiImage::operator unspecified_bool_type | ( |  | ) |

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

- include/cinder/cocoa/CinderCocoaTouch.h
- src/cinder/cocoa/CinderCocoaTouch.mm