Go to the documentation of this file.00001
00002 #ifndef vgl_homg_point_1d_txx_
00003 #define vgl_homg_point_1d_txx_
00004
00005 #include "vgl_homg_point_1d.h"
00006 #include <vcl_iostream.h>
00007
00008 template <class Type>
00009 vcl_ostream& operator<<(vcl_ostream& s, vgl_homg_point_1d<Type> const& p)
00010 {
00011 return s << "<vgl_homg_point_1d (" << p.x() << ',' << p.w() << ") > ";
00012 }
00013
00014 template <class Type>
00015 vcl_istream& operator>>(vcl_istream& s, vgl_homg_point_1d<Type>& p)
00016 {
00017 Type x, w; s >> x >> w; p.set(x,w); return s;
00018 }
00019
00020 #undef VGL_HOMG_POINT_1D_INSTANTIATE
00021 #define VGL_HOMG_POINT_1D_INSTANTIATE(T) \
00022 template class vgl_homg_point_1d<T >; \
00023 template vcl_ostream& operator<<(vcl_ostream&, vgl_homg_point_1d<T >const&); \
00024 template vcl_istream& operator>>(vcl_istream&, vgl_homg_point_1d<T >&)
00025
00026 #endif // vgl_homg_point_1d_txx_