CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions
ext::basic_imemstream< Item_t, Traits_t, Allocator_t > Class Template Reference

#include <memstream.h>

Inheritance diagram for ext::basic_imemstream< Item_t, Traits_t, Allocator_t >:

Public Types

typedef Traits_t::char_type char_type
 
typedef Traits_t::int_type int_type
 
typedef Traits_t traits_type
 

Public Member Functions

 basic_imemstream (const char_type *buf, size_t size)
 

Private Member Functions

int_type underflow () override
 

Detailed Description

template<typename Item_t, typename Traits_t = std::char_traits<Item_t>, typename Allocator_t = std::allocator<Item_t>>
class ext::basic_imemstream< Item_t, Traits_t, Allocator_t >

Definition at line 62 of file memstream.h.

Member Typedef Documentation

◆ char_type

template<typename Item_t , typename Traits_t = std::char_traits<Item_t>, typename Allocator_t = std::allocator<Item_t>>
typedef Traits_t::char_type ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::char_type

Definition at line 64 of file memstream.h.

◆ int_type

template<typename Item_t , typename Traits_t = std::char_traits<Item_t>, typename Allocator_t = std::allocator<Item_t>>
typedef Traits_t::int_type ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::int_type

Definition at line 65 of file memstream.h.

◆ traits_type

template<typename Item_t , typename Traits_t = std::char_traits<Item_t>, typename Allocator_t = std::allocator<Item_t>>
typedef Traits_t ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::traits_type

Definition at line 66 of file memstream.h.

Constructor & Destructor Documentation

◆ basic_imemstream()

template<typename Item_t , typename Traits_t = std::char_traits<Item_t>, typename Allocator_t = std::allocator<Item_t>>
ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::basic_imemstream ( const char_type buf,
size_t  size 
)
inline

Definition at line 68 of file memstream.h.

68  : std::basic_istream<Item_t, Traits_t>(this) {
69  this->exceptions(std::ios_base::badbit);
70  this->setg(const_cast<char_type *>(buf), const_cast<char_type *>(buf), const_cast<char_type *>(buf + size));
71  }

References visDQMUpload::buf, and findQualityFiles::size.

Member Function Documentation

◆ underflow()

template<typename Item_t , typename Traits_t = std::char_traits<Item_t>, typename Allocator_t = std::allocator<Item_t>>
int_type ext::basic_imemstream< Item_t, Traits_t, Allocator_t >::underflow ( )
inlineoverrideprivate

Definition at line 74 of file memstream.h.

74  {
75  if (this->gptr() && this->gptr() < this->egptr())
76  return traits_type::to_int_type(*this->gptr());
77 
78  return traits_type::eof();
79  }
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443