Vault  4.1
Public Member Functions
VAutoreleasePool Class Reference

VAutoreleasePool currently is defined to support memory management in Cocoa applications. More...

#include <vtypes.h>

List of all members.

Public Member Functions

 VAutoreleasePool ()
 This is where we implement all of the Objective-C++ code that we rely on.
void drain ()

Detailed Description

VAutoreleasePool currently is defined to support memory management in Cocoa applications.

It is a no-op on other platforms. We declare an autorelease pool in VThread mains and in unit tests to provide a proper autorelease environment for objects allocated in those contexts. The constructor creates the pool and the destructor drains it. If appropriate, you can drain the pool each time through a loop, while keeping the pool itself around for a longer lifecycle.

Definition at line 667 of file vtypes.h.


Constructor & Destructor Documentation

VAutoreleasePool::VAutoreleasePool ( )

This is where we implement all of the Objective-C++ code that we rely on.

Although we could partition this out by subdirectory/module, there is so little of it that it seems cleaner to put it what little of it exists all in one place.

Definition at line 24 of file vtypes_platform_objc.mm.


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

Copyright ©1997-2014 Trygve Isaacson. All rights reserved. This documentation was generated with Doxygen.