Serialised binary IO functions for vbl_smart_ptr<T> More...
Go to the source code of this file.
Functions | |
| template<class T > | |
| void | vsl_b_write (vsl_b_ostream &os, const vbl_smart_ptr< T > &v) |
| Binary save vbl_smart_ptr to stream. More... | |
| template<class T > | |
| void | vsl_b_read (vsl_b_istream &is, vbl_smart_ptr< T > &v) |
| Binary load vbl_smart_ptr from stream. More... | |
| template<class T > | |
| void | vsl_print_summary (std::ostream &os, const vbl_smart_ptr< T > &b) |
| Print human readable summary of object to a stream. More... | |
Serialised binary IO functions for vbl_smart_ptr<T>
In order to use IO for smart pointers you will need to have the IO functions defined for pointers to MY_CLASS (class T.) If you have written I/O for polymorphic classes, some of these functions may already be defined.
If you need to write them, you can use the following as examples
Objects using I/O via a smart ptr, should not save the objects reference count.
Definition in file vbl_io_smart_ptr.h.
| void vsl_b_read | ( | vsl_b_istream & | is, |
| vbl_smart_ptr< T > & | p | ||
| ) |
Binary load vbl_smart_ptr from stream.
Binary load vbl_smart_ptr from stream.
Definition at line 93 of file vbl_io_smart_ptr.hxx.
| void vsl_b_write | ( | vsl_b_ostream & | os, |
| const vbl_smart_ptr< T > & | p | ||
| ) |
Binary save vbl_smart_ptr to stream.
Binary save vbl_smart_ptr to stream.
Definition at line 22 of file vbl_io_smart_ptr.hxx.
| void vsl_print_summary | ( | std::ostream & | os, |
| const vbl_smart_ptr< T > & | p | ||
| ) |
Print human readable summary of object to a stream.
Print human readable summary of object to a stream.
Definition at line 166 of file vbl_io_smart_ptr.hxx.
1.8.15