MatrixFunctions::MatrixObject< T > Class Template Reference

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

#include <MatrixFunctions.h>

List of all members.

Public Member Functions

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

Classes

class  Args
 This is an implementation detail of the MatrixObject class. More...


Detailed Description

template<typename T>
class MatrixFunctions::MatrixObject< T >

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

The MatrixObject is a trait object for use with the Resource template. It provides capability for creating and destroying two-dimensional matrices.

See also:
MatrixResource

Definition at line 40 of file MatrixFunctions.h.


Member Function Documentation

template<typename T>
T* MatrixFunctions::MatrixObject< T >::obtainResource ( const Args args  )  const

Obtains an matrix using the createMatrix function.

Parameters:
args The arguments for obtaining the resource. Should be of type MatrixObject::Args.
Returns:
Returns a pointer to the created Matrix.

Definition at line 68 of file MatrixFunctions.h.

template<typename T>
void MatrixFunctions::MatrixObject< T >::releaseResource ( const Args args,
T *  pMatrix 
) const

Releases a matrix using the deleteMatrix function.

Parameters:
args The arguments for releasing the resource. Should be of type MatrixObject::Args.
pMatrix A pointer to the matrix to be freed.

Definition at line 81 of file MatrixFunctions.h.


Software Development Kit - Opticks 4.9.0 Build 16218