\hypertarget{a00803_source}{}\doxysection{AAX\+\_\+\+CAutorelease\+Pool.\+h}
\label{a00803_source}\index{AAX\_CAutoreleasePool.h@{AAX\_CAutoreleasePool.h}}
\mbox{\hyperlink{a00803}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ \ Copyright\ 2014-\/2015,\ 2023-\/2024\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ This\ file\ is\ part\ of\ the\ Avid\ AAX\ SDK.}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ The\ AAX\ SDK\ is\ subject\ to\ commercial\ or\ open-\/source\ licensing.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00011\ \textcolor{comment}{\ *\ \ By\ using\ the\ AAX\ SDK,\ you\ agree\ to\ the\ terms\ of\ both\ the\ Avid\ AAX\ SDK\ License}}
\DoxyCodeLine{00012\ \textcolor{comment}{\ *\ \ Agreement\ and\ Avid\ Privacy\ Policy.}}
\DoxyCodeLine{00013\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ AAX\ SDK\ License:\ https://developer.avid.com/aax}}
\DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ Privacy\ Policy:\ https://www.avid.com/legal/privacy-\/policy-\/statement}}
\DoxyCodeLine{00016\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00017\ \textcolor{comment}{\ *\ \ Or:\ You\ may\ also\ use\ this\ code\ under\ the\ terms\ of\ the\ GPL\ v3\ (see}}
\DoxyCodeLine{00018\ \textcolor{comment}{\ *\ \ www.gnu.org/licenses).}}
\DoxyCodeLine{00019\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00020\ \textcolor{comment}{\ *\ \ THE\ AAX\ SDK\ IS\ PROVIDED\ "{}AS\ IS"{}\ WITHOUT\ ANY\ WARRANTY,\ AND\ ALL\ WARRANTIES,\ WHETHER}}
\DoxyCodeLine{00021\ \textcolor{comment}{\ *\ \ EXPRESSED\ OR\ IMPLIED,\ INCLUDING\ MERCHANTABILITY\ AND\ FITNESS\ FOR\ PURPOSE,\ ARE}}
\DoxyCodeLine{00022\ \textcolor{comment}{\ *\ \ DISCLAIMED.}}
\DoxyCodeLine{00023\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00024\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00031\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ \textcolor{preprocessor}{\#ifndef\ \_AAX\_CAUTORELEASEPOOL\_H\_}}
\DoxyCodeLine{00037\ \textcolor{preprocessor}{\#define\ \_AAX\_CAUTORELEASEPOOL\_H\_}}
\DoxyCodeLine{00038\ }
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ \textcolor{comment}{/*\ \ \(\backslash\)brief\ Creates\ an\ autorelease\ pool\ for\ the\ scope\ of\ the\ stack\ based\ class}}
\DoxyCodeLine{00041\ \textcolor{comment}{\ \ \ \ to\ clearn\ up\ any\ autoreleased\ memory\ that\ was\ allocated\ in\ the\ lifetime\ of}}
\DoxyCodeLine{00042\ \textcolor{comment}{\ \ \ \ the\ pool.}}
\DoxyCodeLine{00043\ \textcolor{comment}{\ \ \ \ }}
\DoxyCodeLine{00044\ \textcolor{comment}{\ \ \ \ \(\backslash\)details}}
\DoxyCodeLine{00045\ \textcolor{comment}{\ \ \ \ This\ may\ be\ used\ on\ either\ Mac\ or\ Windows\ platforms\ and\ will\ not\ pull\ in}}
\DoxyCodeLine{00046\ \textcolor{comment}{\ \ \ \ any\ Cocoa\ dependencies.}}
\DoxyCodeLine{00047\ \textcolor{comment}{\ \ \ \ }}
\DoxyCodeLine{00048\ \textcolor{comment}{\ \ \ \ usage:}}
\DoxyCodeLine{00049\ \textcolor{comment}{\(\backslash\)code}}
\DoxyCodeLine{00050\ \textcolor{comment}{\{}}
\DoxyCodeLine{00051\ \textcolor{comment}{\ \ \ \ AAX\_CAutoreleasePool\ myAutoReleasePool}}
\DoxyCodeLine{00052\ \textcolor{comment}{\ \ \ \ delete\ myCocoaObject;}}
\DoxyCodeLine{00053\ \textcolor{comment}{}}
\DoxyCodeLine{00054\ \textcolor{comment}{\ \ \ \ //\ Pool\ is\ released\ when\ the\ AAX\_CAutoreleasePool\ is\ destroyed}}
\DoxyCodeLine{00055\ \textcolor{comment}{\}}}
\DoxyCodeLine{00056\ \textcolor{comment}{\(\backslash\)endcode}}
\DoxyCodeLine{00057\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00058\ \textcolor{keyword}{class\ }\mbox{\hyperlink{a01814}{AAX\_CAutoreleasePool}}}
\DoxyCodeLine{00059\ \{}
\DoxyCodeLine{00060\ \ \ \ \ \textcolor{keyword}{public}:}
\DoxyCodeLine{00061\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01814_a7616cfb07ba64f1aa6e05e5c0a543cd5}{AAX\_CAutoreleasePool}}();}
\DoxyCodeLine{00062\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01814_a62e9a899ec16ad32e5689b5d65c82546}{\string~AAX\_CAutoreleasePool}}();}
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00064\ \ \ \ \ \textcolor{keyword}{private}:}
\DoxyCodeLine{00065\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01814_a7616cfb07ba64f1aa6e05e5c0a543cd5}{AAX\_CAutoreleasePool}}\ (\textcolor{keyword}{const}\ \mbox{\hyperlink{a01814}{AAX\_CAutoreleasePool}}\&);}
\DoxyCodeLine{00066\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01814}{AAX\_CAutoreleasePool}}\&\ operator=\ (\textcolor{keyword}{const}\ \mbox{\hyperlink{a01814}{AAX\_CAutoreleasePool}}\&);}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00068\ \ \ \ \ \textcolor{keyword}{private}:}
\DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}*\ mAutoreleasePool;\ }
\DoxyCodeLine{00070\ \ \};}
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00072\ }
\DoxyCodeLine{00073\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \#ifndef\ \_AAX\_CAUTORELEASEPOOL\_H\_}}

\end{DoxyCode}
