AAX SDK  2.4.1
Avid Audio Extensions Development Kit
AAX_CAutoreleasePool.h
Go to the documentation of this file.
1 /*================================================================================================*/
2 /*
3 
4  * Copyright 2014-2015 by Avid Technology, Inc.
5  * All rights reserved.
6  *
7  * CONFIDENTIAL: This document contains confidential information. Do not
8  * read or examine this document unless you are an Avid Technology employee
9  * or have signed a non-disclosure agreement with Avid Technology which protects
10  * the confidentiality of this document. DO NOT DISCLOSE ANY INFORMATION
11  * CONTAINED IN THIS DOCUMENT TO ANY THIRD-PARTY WITHOUT THE PRIOR WRITTEN CONSENT
12  * OF Avid Technology, INC.
13  *
14  */
15 
21 /*================================================================================================*/
22 
23 
24 #pragma once
25 
26 #ifndef _AAX_CAUTORELEASEPOOL_H_
27 #define _AAX_CAUTORELEASEPOOL_H_
28 
29 
30 /* \brief Creates an autorelease pool for the scope of the stack based class
31  to clearn up any autoreleased memory that was allocated in the lifetime of
32  the pool.
33 
34  \details
35  This may be used on either Mac or Windows platforms and will not pull in
36  any Cocoa dependencies.
37 
38  usage:
39 \code
40 {
41  AAX_CAutoreleasePool myAutoReleasePool
42  delete myCocoaObject;
43 
44  // Pool is released when the AAX_CAutoreleasePool is destroyed
45 }
46 \endcode
47  */
49 {
50  public:
53 
54  private:
56  AAX_CAutoreleasePool& operator= (const AAX_CAutoreleasePool&);
57 
58  private:
59  void* mAutoreleasePool;
60  };
61 
62 
63 #endif // #ifndef _AAX_CAUTORELEASEPOOL_H_
Definition: AAX_CAutoreleasePool.h:49