| AAX SDK 2.8.0 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

Loading...
Searching...
No Matches
AAX_CAutoreleasePool.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3
4 * Copyright 2014-2015, 2023-2024 Avid Technology, Inc.
5 * All rights reserved.
6 *
7 * This file is part of the Avid AAX SDK.
8 *
9 * The AAX SDK is subject to commercial or open-source licensing.
10 *
11 * By using the AAX SDK, you agree to the terms of both the Avid AAX SDK License
12 * Agreement and Avid Privacy Policy.
13 *
14 * AAX SDK License: https://developer.avid.com/aax
15 * Privacy Policy: https://www.avid.com/legal/privacy-policy-statement
16 *
17 * Or: You may also use this code under the terms of the GPL v3 (see
18 * www.gnu.org/licenses).
19 *
20 * THE AAX SDK IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
21 * EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
22 * DISCLAIMED.
23 *
24 */
25
31/*================================================================================================*/
32
33
34#pragma once
35
36#ifndef _AAX_CAUTORELEASEPOOL_H_
37#define _AAX_CAUTORELEASEPOOL_H_
38
39
40/* \brief Creates an autorelease pool for the scope of the stack based class
41 to clearn up any autoreleased memory that was allocated in the lifetime of
42 the pool.
43
44 \details
45 This may be used on either Mac or Windows platforms and will not pull in
46 any Cocoa dependencies.
47
48 usage:
49\code
50{
51 AAX_CAutoreleasePool myAutoReleasePool
52 delete myCocoaObject;
53
54 // Pool is released when the AAX_CAutoreleasePool is destroyed
55}
56\endcode
57 */
58 class AAX_CAutoreleasePool
59{
60 public:
61 AAX_CAutoreleasePool();
62 ~AAX_CAutoreleasePool();
63
64 private:
65 AAX_CAutoreleasePool (const AAX_CAutoreleasePool&);
66 AAX_CAutoreleasePool& operator= (const AAX_CAutoreleasePool&);
67
68 private:
69 void* mAutoreleasePool;
70 };
71
72
73#endif // #ifndef _AAX_CAUTORELEASEPOOL_H_
AAX_CAutoreleasePool
Definition: AAX_CAutoreleasePool.h:59
AAX_CAutoreleasePool::~AAX_CAutoreleasePool
~AAX_CAutoreleasePool()
AAX_CAutoreleasePool::AAX_CAutoreleasePool
AAX_CAutoreleasePool()