2 #ifndef vgl_io_conic_hxx_ 3 #define vgl_io_conic_hxx_ 10 #include <vsl/vsl_binary_io.h> 17 constexpr
short io_version_no = 1;
46 conic.
set(a,b,c,d,e,f);
50 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_conic<T>&)\n" 51 <<
" Unknown version number "<<
v <<
'\n';
52 is.is().clear(std::ios::badbit);
66 #undef VGL_IO_CONIC_INSTANTIATE 67 #define VGL_IO_CONIC_INSTANTIATE(T) \ 68 template void vsl_print_summary(std::ostream &, vgl_conic<T > const&); \ 69 template void vsl_b_read(vsl_b_istream &, vgl_conic<T > &); \ 70 template void vsl_b_write(vsl_b_ostream &, vgl_conic<T > const&) 72 #endif // vgl_io_conic_hxx_
void vsl_b_read(vsl_b_istream &is, vgl_conic< T > &conic)
Binary load self from stream.
T f() const
Returns the coefficient of .
void vsl_print_summary(std::ostream &os, vgl_conic< T > const &conic)
Output a human readable summary to the stream.
T a() const
Returns the coefficient of .
T c() const
Returns the coefficient of .
T e() const
Returns the coefficient of .
void vsl_b_write(vsl_b_ostream &os, vgl_conic< T > const &conic)
Binary save self to stream.
T b() const
Returns the coefficient of .
T d() const
Returns the coefficient of .
void set(T a, T b, T c, T d, T e, T f)
set or reset the conic using polynomial coefficients.