Macros | Functions
vbl_io_smart_ptr.hxx File Reference

Serialised binary IO functions for vbl_smart_ptr<T> More...

#include <cstdlib>
#include <iostream>
#include "vbl_io_smart_ptr.h"
#include <vsl/vsl_binary_io.h>
#include <vbl/vbl_smart_ptr.h>

Go to the source code of this file.

Macros

#define VBL_IO_SMART_PTR_INSTANTIATE(T)
 

Functions

template<class T >
void vsl_b_write (vsl_b_ostream &os, const vbl_smart_ptr< T > &p)
 Binary save self to stream. More...
 
template<class T >
void vsl_b_read (vsl_b_istream &is, vbl_smart_ptr< T > &p)
 Binary load self from stream. More...
 
template<class T >
void vsl_print_summary (std::ostream &os, const vbl_smart_ptr< T > &p)
 Output a human readable summary to the stream. More...
 

Detailed Description

Serialised binary IO functions for vbl_smart_ptr<T>

Author
Ian Scott (Manchester)
Date
26-Mar-2001

Definition in file vbl_io_smart_ptr.hxx.

Macro Definition Documentation

◆ VBL_IO_SMART_PTR_INSTANTIATE

#define VBL_IO_SMART_PTR_INSTANTIATE (   T)
Value:
template void vsl_print_summary(std::ostream &, const vbl_smart_ptr<T > &); \
template void vsl_b_read(vsl_b_istream &, vbl_smart_ptr<T > &); \
template void vsl_b_write(vsl_b_ostream &, const vbl_smart_ptr<T > &)
A templated smart pointer class.
Definition: vbl_fwd.h:18
void vsl_print_summary(std::ostream &os, const vbl_smart_ptr< T > &p)
Output a human readable summary to the stream.
void vsl_b_write(vsl_b_ostream &os, const vbl_smart_ptr< T > &p)
Binary save self to stream.
void vsl_b_read(vsl_b_istream &is, vbl_smart_ptr< T > &p)
Binary load self from stream.

Definition at line 184 of file vbl_io_smart_ptr.hxx.

Function Documentation

◆ vsl_b_read()

template<class T >
void vsl_b_read ( vsl_b_istream &  is,
vbl_smart_ptr< T > &  p 
)

Binary load self from stream.

Binary load vbl_smart_ptr from stream.

Definition at line 93 of file vbl_io_smart_ptr.hxx.

◆ vsl_b_write()

template<class T >
void vsl_b_write ( vsl_b_ostream &  os,
const vbl_smart_ptr< T > &  p 
)

Binary save self to stream.

Binary save vbl_smart_ptr to stream.

Definition at line 22 of file vbl_io_smart_ptr.hxx.

◆ vsl_print_summary()

template<class T >
void vsl_print_summary ( std::ostream &  os,
const vbl_smart_ptr< T > &  p 
)

Output a human readable summary to the stream.

Print human readable summary of object to a stream.

Definition at line 166 of file vbl_io_smart_ptr.hxx.