Classes | Defines | Functions
core/vnl/vnl_matlab_print2.h File Reference

After including this header file, the client should be able to say : More...

#include <vnl/vnl_matlab_print.h>
#include <vcl_iosfwd.h>

Go to the source code of this file.

Classes

struct  vnl_matlab_print_proxy< T >

Defines

#define VNL_MATLAB_PRINT2_INSTANTIATE(T)

Functions

template<class T >
vcl_ostream & operator<< (vcl_ostream &os, vnl_matlab_print_proxy< T > const &mp)
template<class T >
vnl_matlab_print_proxy< T > vnl_matlab_print (T const &obj, char const *name=0, vnl_matlab_print_format format=vnl_matlab_print_format_default)

Detailed Description

After including this header file, the client should be able to say :

   vnl_matrix<double> foo(3, 14);
  ....
   vcl_cerr << "and the blasted matrix is :" << endl
            << vnl_matlab_print(foo)
            << vnl_matlab_print(foo, "foo")
            << vnl_matlab_print(foo, 0, vnl_matlab_fmt_long);

instead of

  ....
   vcl_cerr << "and the blasted matrix is :" << endl;
   vnl_matlab_print(vcl_cerr, foo);
   vnl_matlab_print(vcl_cerr, foo, "foo");
   vnl_matlab_print(vcl_cerr, foo, 0, vnl_matlab_fmt_long);
Author:
fsm

Definition in file vnl_matlab_print2.h.


Define Documentation

#define VNL_MATLAB_PRINT2_INSTANTIATE (   T)
Value:
template struct vnl_matlab_print_proxy<T >; \
VCL_INSTANTIATE_INLINE(vcl_ostream& \
                       operator<<(vcl_ostream&, vnl_matlab_print_proxy<T > const&)); \
VCL_INSTANTIATE_INLINE(vnl_matlab_print_proxy<T > \
                       vnl_matlab_print(T const&, char const*, vnl_matlab_print_format))

Definition at line 68 of file vnl_matlab_print2.h.


Function Documentation

template<class T >
vcl_ostream& operator<< ( vcl_ostream &  os,
vnl_matlab_print_proxy< T > const &  mp 
) [inline]

Definition at line 50 of file vnl_matlab_print2.h.

template<class T >
vnl_matlab_print_proxy<T> vnl_matlab_print ( T const &  obj,
char const *  name = 0,
vnl_matlab_print_format  format = vnl_matlab_print_format_default 
) [inline]

Definition at line 61 of file vnl_matlab_print2.h.