| GL Studio C++ Runtime API

Public Member Functions | Protected Attributes | List of all members
GlsResourceFileMgr::AutoRelease< T > Class Template Reference

`#include <gls_resource_file_mgr.h>`

## Public Member Functions
| AutoRelease (T *obj)
| AutoRelease (const AutoRelease &other)
T * | get ()

## Protected Attributes
T * | _ptr
| Pointer to an object with a refernce counting interface.

## Detailed Description

template<class T>
class disti::GlsResourceFileMgr::AutoRelease< T >

Automatically release a resource when no more AutoRelease instances reference it.

See also
  CacheResourceFile

## Constructor & Destructor Documentation

## ◆ AutoRelease() [1/2]

AutoRelease | ( | T * | obj | ) |
| inline

Constructor

Parameters

  obj | The object to wrap.

## ◆ AutoRelease() [2/2]

AutoRelease | ( | const AutoRelease< T > & | other | ) |
| inline

Copy constructor

Note
  Does not copy the underlying object, instead increments the underlying objects reference count.

Parameters

  other | The object to copy.

## Member Function Documentation

## ◆ get()

T * get | ( |  | ) |
| inline

Returns
  A pointer to the underlying object with reference counting interface.

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

- gls_resource_file_mgr.h