1 #ifndef PhysicsTools_MVAComputer_memstream_h
2 #define PhysicsTools_MVAComputer_memstream_h
22 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
23 typename Allocator_t = std::allocator<Item_t> >
25 public std::basic_ostream<Item_t, Traits_t> {
32 std::basic_ostream<Item_t, Traits_t>(this),
34 { this->exceptions(std::ios_base::badbit); }
51 if (!traits_type::eq_int_type(c, traits_type::eof())) {
54 return traits_type::eof();
65 template<
typename Item_t,
typename Traits_t = std::
char_traits<Item_t>,
66 typename Allocator_t = std::allocator<Item_t> >
68 public std::basic_istream<Item_t, Traits_t> {
75 std::basic_istream<Item_t, Traits_t>(this)
77 this->exceptions(std::ios_base::badbit);
78 setg(const_cast<char_type*>(buf),
79 const_cast<char_type*>(buf),
80 const_cast<char_type*>(buf + size));
86 if (this->gptr() && this->gptr() < this->egptr())
87 return traits_type::to_int_type(*this->gptr());
89 return traits_type::eof();
100 #endif // PhysicsTools_MVAComputer_memstream_h
Traits_t::char_type char_type
basic_imemstream(const char_type *buf, size_t size)
int_type overflow(int_type c)
Traits_t::char_type char_type
basic_imemstream< wchar_t > wimemstream
Traits_t::int_type int_type
basic_omemstream< char > omemstream
basic_omemstream< wchar_t > womemstream
basic_omemstream(char_type *buf, size_t size)
basic_imemstream< char > imemstream
Traits_t::int_type int_type
std::streamsize xsputn(char_type const *data, std::streamsize size)
char_type * begin() const
tuple size
Write out results.