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

#include <unwrap.hpp>

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

template<typename eT>
class unwrap_check< Col< eT > >

Definition at line 185 of file unwrap.hpp.


Constructor & Destructor Documentation

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

Definition at line 190 of file unwrap.hpp.

00191     : M_local( (&A == reinterpret_cast<const Col<eT>*>(&B)) ? new Col<eT>(A) : 0 )
00192     , M      ( (&A == reinterpret_cast<const Col<eT>*>(&B)) ? (*M_local)     : A )
00193     {
00194     arma_extra_debug_sigprint();
00195     }

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

Definition at line 199 of file unwrap.hpp.

00200     {
00201     arma_extra_debug_sigprint();
00202     
00203     if(M_local)
00204       {
00205       delete M_local;
00206       }
00207     }


Member Data Documentation

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

Definition at line 211 of file unwrap.hpp.

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

Definition at line 212 of file unwrap.hpp.