MemoryObject< T > Class Template Reference

The MemoryObject is a trait object for use with the Resource template. More...

#include <Resource.h>

Inheritance diagram for MemoryObject< T >:

Inheritance graph

List of all members.

Public Member Functions

T * obtainResource (const Args &args) const
void releaseResource (const Args &args, T *pObject) const

Classes

class  Args


Detailed Description

template<class T>
class MemoryObject< T >

The MemoryObject is a trait object for use with the Resource template.

It provides capability for creating and deleting objects from the local heap. A Resource using this trait behaves the same as an auto_ptr. This is the default trait used if a Resource object is declared without specifying the trait class.

Definition at line 21 of file Resource.h.


Member Function Documentation

template<class T>
T* MemoryObject< T >::obtainResource ( const Args args  )  const

Definition at line 25 of file Resource.h.

template<class T>
void MemoryObject< T >::releaseResource ( const Args args,
T *  pObject 
) const

Definition at line 30 of file Resource.h.


Software Development Kit - Opticks 4.9.0 Build 16218