Public Member Functions | Public Attributes

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.

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

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

Definition at line 164 of file unwrap.hpp.

    {
    arma_extra_debug_sigprint();
    
    if(M_local)
      {
      delete M_local;
      }
    }


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.