unwrap_check< Mat< eT > > Class Template Reference
[Unwrap]

#include <unwrap.hpp>

List of all members.

Public Member Functions

 unwrap_check (const Mat< eT > &A, const Mat< eT > &B)
 ~unwrap_check ()

Public Attributes

const Mat< eT > * M_local
const Mat< eT > & M

Detailed Description

template<typename eT>
class unwrap_check< Mat< eT > >

Definition at line 119 of file unwrap.hpp.


Constructor & Destructor Documentation

template<typename eT >
unwrap_check< Mat< eT > >::unwrap_check ( const Mat< eT > &  A,
const Mat< eT > &  B 
) [inline]

Definition at line 124 of file unwrap.hpp.

00125     : M_local( (&A == &B) ? new Mat<eT>(A) : 0 )
00126     , M      ( (&A == &B) ? (*M_local)     : A )
00127     {
00128     arma_extra_debug_sigprint();
00129     }

template<typename eT >
unwrap_check< Mat< eT > >::~unwrap_check (  )  [inline]

Definition at line 133 of file unwrap.hpp.

00134     {
00135     arma_extra_debug_sigprint();
00136     
00137     if(M_local)
00138       {
00139       delete M_local;
00140       }
00141     }


Member Data Documentation

template<typename eT >
const Mat<eT>* unwrap_check< Mat< eT > >::M_local

Definition at line 145 of file unwrap.hpp.

template<typename eT >
const Mat<eT>& unwrap_check< Mat< eT > >::M

Definition at line 146 of file unwrap.hpp.