BOSS 7.0.7
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)
 

Static Public Member Functions

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 binarystream.h.

Constructor & Destructor Documentation

◆ basic_binostream()

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 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)) {}
std::ostream ostream
Definition: bpkt_streams.h:41

◆ ~basic_binostream()

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

Definition at line 85 of file binarystream.h.

85{ delete _buf; }

Member Function Documentation

◆ computesize()

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

Definition at line 96 of file binarystream.h.

96 {
98 }
XmlRpcServer s
Definition: HelloServer.cpp:11
static size_t computesize(size_t s)
Definition: binarystream.h:56

◆ popbuf()

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 binarystream.h.

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

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