Classes | Macros | Functions
vnl_matlab_print2.h File Reference

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

#include <iosfwd>
#include <vnl/vnl_matlab_print.h>
#include "vnl/vnl_export.h"

Go to the source code of this file.

Classes

struct  vnl_matlab_print_proxy< T >
 

Macros

#define VNL_MATLAB_PRINT2_INSTANTIATE(T)
 

Functions

template<class T >
std::ostream & operator<< (std::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=nullptr, 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);
....
std::cerr << "and the blasted matrix is :" << endl
<< vnl_matlab_print(foo, "foo")
<< vnl_matlab_print(foo, 0, vnl_matlab_fmt_long);

instead of

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

Definition in file vnl_matlab_print2.h.

Macro Definition Documentation

◆ VNL_MATLAB_PRINT2_INSTANTIATE

#define VNL_MATLAB_PRINT2_INSTANTIATE (   T)
Value:
template struct VNL_EXPORT vnl_matlab_print_proxy<T >; \
/* template std::ostream& \
operator<<(std::ostream&, vnl_matlab_print_proxy<T > const&); */ \
/* template vnl_matlab_print_proxy<T > \
vnl_matlab_print(T const&, char const*, vnl_matlab_print_format) */

Definition at line 69 of file vnl_matlab_print2.h.

Function Documentation

◆ operator<<()

template<class T >
std::ostream& operator<< ( std::ostream &  os,
vnl_matlab_print_proxy< T > const &  mp 
)
inline

Definition at line 51 of file vnl_matlab_print2.h.

◆ vnl_matlab_print()

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

Definition at line 62 of file vnl_matlab_print2.h.