C4 Engine
C4 Engine API Documentation

class AutoReleaseAlbum

Defined in:  C4Slug.h
A helper class that wraps a pointer to a Album object.
Definition

class AutoReleaseAlbum : public AutoRelease<Album>

Constructor

AutoReleaseAlbum(const char *name);

Parameters
name The name of the album resource.
Description
The AutoReleaseAlbum class is a helper class that wraps a pointer to a Album object. When an AutoReleaseAlbum is constructed, it calls the Album::GetAlbum function to obtain a pointer to the album specified by the name parameter. It then wraps that pointer in an AutoRelease object. When an AutoReleaseAlbum object goes out of scope, it automatically releases the album object that it wraps.
Base Classes
AutoRelease<Album> Album objects are reference counted.
See Also

Album::GetAlbum