unwrap_cube_check< Cube< eT > > Class Template Reference
[Unwrap_cube]

#include <unwrap_cube.hpp>

List of all members.

Public Member Functions

 unwrap_cube_check (const Cube< eT > &A, const Cube< eT > &B)
 unwrap_cube_check (const Cube< eT > &A, const subview_cube< eT > &B)
 ~unwrap_cube_check ()

Public Attributes

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

Detailed Description

template<typename eT>
class unwrap_cube_check< Cube< eT > >

Definition at line 120 of file unwrap_cube.hpp.


Constructor & Destructor Documentation

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

Definition at line 125 of file unwrap_cube.hpp.

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

template<typename eT >
unwrap_cube_check< Cube< eT > >::unwrap_cube_check ( const Cube< eT > &  A,
const subview_cube< eT > &  B 
) [inline]

Definition at line 134 of file unwrap_cube.hpp.

00135     : M_local( (&A == reinterpret_cast<const Cube<eT>*>(&B.m)) ? new Cube<eT>(A) : 0 )
00136     , M      ( (&A == reinterpret_cast<const Cube<eT>*>(&B.m)) ? (*M_local)      : A )
00137     {
00138     arma_extra_debug_sigprint();
00139     }

template<typename eT >
unwrap_cube_check< Cube< eT > >::~unwrap_cube_check (  )  [inline]

Definition at line 143 of file unwrap_cube.hpp.

00144     {
00145     arma_extra_debug_sigprint();
00146     
00147     if(M_local)
00148       {
00149       delete M_local;
00150       }
00151     }


Member Data Documentation

template<typename eT >
const Cube<eT>* unwrap_cube_check< Cube< eT > >::M_local

Definition at line 155 of file unwrap_cube.hpp.

template<typename eT >
const Cube<eT>& unwrap_cube_check< Cube< eT > >::M

Definition at line 156 of file unwrap_cube.hpp.