BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
basic_binostream< _Ch, _Tr > Class Template Reference

#include <binarystream.h>

+ Inheritance diagram for basic_binostream< _Ch, _Tr >:

Public Member Functions

 basic_binostream (std::streamsize sz)
 
virtual ~basic_binostream ()
 
void * popbuf (size_t &sz)
 
 basic_binostream (std::streamsize sz)
 
virtual ~basic_binostream ()
 
void * popbuf (size_t &sz)
 

Static Public Member Functions

static size_t computesize (size_t s)
 
static size_t computesize (size_t s)
 

Detailed Description

template<class _Ch, class _Tr = std::char_traits<_Ch>>
class basic_binostream< _Ch, _Tr >

Definition at line 76 of file Calibration/facilities/facilities-00-00-04/facilities/binarystream.h.

Constructor & Destructor Documentation

◆ basic_binostream() [1/2]

template<class _Ch , class _Tr = std::char_traits<_Ch>>
basic_binostream< _Ch, _Tr >::basic_binostream ( std::streamsize  sz)
inline

◆ ~basic_binostream() [1/2]

template<class _Ch , class _Tr = std::char_traits<_Ch>>
virtual basic_binostream< _Ch, _Tr >::~basic_binostream ( )
inlinevirtual

Definition at line 85 of file Calibration/facilities/facilities-00-00-04/facilities/binarystream.h.

85{ delete _buf; }

◆ basic_binostream() [2/2]

template<class _Ch , class _Tr = std::char_traits<_Ch>>
basic_binostream< _Ch, _Tr >::basic_binostream ( std::streamsize  sz)
inline

Definition at line 79 of file InstallArea/include/facilities/facilities/binarystream.h.

81 : std::basic_ostream<_Ch,_Tr>(_buf = new basic_binstreambuf<_Ch,_Tr>(sz)) {}
82#else
83 : ostream (_buf = new basic_binstreambuf<_Ch,_Tr>(sz)) {}

◆ ~basic_binostream() [2/2]

template<class _Ch , class _Tr = std::char_traits<_Ch>>
virtual basic_binostream< _Ch, _Tr >::~basic_binostream ( )
inlinevirtual

Definition at line 85 of file InstallArea/include/facilities/facilities/binarystream.h.

85{ delete _buf; }

Member Function Documentation

◆ computesize() [1/2]

template<class _Ch , class _Tr = std::char_traits<_Ch>>
static size_t basic_binostream< _Ch, _Tr >::computesize ( size_t  s)
inlinestatic

◆ computesize() [2/2]

template<class _Ch , class _Tr = std::char_traits<_Ch>>
static size_t basic_binostream< _Ch, _Tr >::computesize ( size_t  s)
inlinestatic

◆ popbuf() [1/2]

template<class _Ch , class _Tr = std::char_traits<_Ch>>
void * basic_binostream< _Ch, _Tr >::popbuf ( size_t &  sz)
inline

Definition at line 89 of file Calibration/facilities/facilities-00-00-04/facilities/binarystream.h.

89 {
90 sz = _buf->outbufsize();
91 return _buf->givebuf ();
92 }

◆ popbuf() [2/2]

template<class _Ch , class _Tr = std::char_traits<_Ch>>
void * basic_binostream< _Ch, _Tr >::popbuf ( size_t &  sz)
inline

Definition at line 89 of file InstallArea/include/facilities/facilities/binarystream.h.

89 {
90 sz = _buf->outbufsize();
91 return _buf->givebuf ();
92 }

The documentation for this class was generated from the following files: