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 150 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 155 of file unwrap.hpp.

00156     : M_local( (&A == &B) ? new Mat<eT>(A) : 0 )
00157     , M      ( (&A == &B) ? (*M_local)     : A )
00158     {
00159     arma_extra_debug_sigprint();
00160     }

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

Definition at line 164 of file unwrap.hpp.

00165     {
00166     arma_extra_debug_sigprint();
00167     
00168     if(M_local)
00169       {
00170       delete M_local;
00171       }
00172     }


Member Data Documentation

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

Definition at line 176 of file unwrap.hpp.

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

Definition at line 177 of file unwrap.hpp.