Virtual Testbed
Ship dynamics simulator for extreme conditions
Public Types | Public Member Functions | List of all members
vtb::base::bstream Class Reference

Public Types

using char_type = char
 
using traits_type = std::char_traits< char >
 
using size_type = std::uint64_t
 
using streambuf = std::basic_streambuf< char_type, traits_type >
 

Public Member Functions

 bstream (streambuf *buffer)
 
streambufrdbuf ()
 
const streambufrdbuf () const
 
streambufrdbuf (streambuf *rhs)
 
void sync ()
 
void flush ()
 
void write (const char_type *s, size_type n)
 
void read (char_type *s, size_type n)
 
 bstream (bstream &&)=default
 
bstreamoperator= (bstream &&)=default
 
 bstream (const bstream &)=delete
 
bstreamoperator= (const bstream &)=delete
 
template<class Ch , class Tr >
std::enable_if< sizeof(Ch)==sizeof(char_type), bstream & >::type operator<< (const std::basic_string< Ch, Tr > &rhs)
 
template<class Ch , class Tr >
std::enable_if< sizeof(Ch)==sizeof(char_type), bstream & >::type operator>> (std::basic_string< Ch, Tr > &rhs)
 
template<class T >
std::enable_if< has_begin_end< T >::value, bstream & >::type operator<< (const T &rhs)
 
template<class T >
std::enable_if< has_reserve_emplace_back< T >::value, bstream & >::type operator>> (T &rhs)
 
bstreamoperator<< (float rhs)
 
bstreamoperator>> (float &rhs)
 
bstreamoperator<< (std::uint8_t rhs)
 
bstreamoperator>> (std::uint8_t &rhs)
 
bstreamoperator<< (std::uint16_t rhs)
 
bstreamoperator>> (std::uint16_t &rhs)
 
bstreamoperator<< (std::uint32_t rhs)
 
bstreamoperator>> (std::uint32_t &rhs)
 
bstreamoperator<< (std::uint64_t rhs)
 
bstreamoperator>> (std::uint64_t &rhs)
 
bstreamoperator<< (std::int8_t rhs)
 
bstreamoperator>> (std::int8_t &rhs)
 
bstreamoperator<< (std::int16_t rhs)
 
bstreamoperator>> (std::int16_t &rhs)
 
bstreamoperator<< (std::int32_t rhs)
 
bstreamoperator>> (std::int32_t &rhs)
 
bstreamoperator<< (std::int64_t rhs)
 
bstreamoperator>> (std::int64_t &rhs)
 
bstreamoperator<< (char rhs)
 
bstreamoperator>> (char &rhs)
 
bstreamoperator<< (double rhs)
 
bstreamoperator>> (double &rhs)
 

Detailed Description

Definition at line 28 of file bstream.hh.