|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Represents a buffer that wraps System::IO::Stream-like streams and allows them to be used as an std::iostream-like streams internal buffer. More...
#include <system_stream_wrappers.h>
Inherits std::basic_streambuf< Elem, std::char_traits< Elem > >.
Public Types | |
| using | char_type = Elem |
| using | traits_type = Traits |
| using | Mysb = std::basic_streambuf< char_type, traits_type > |
| using | int_type = typename traits_type::int_type |
| using | pos_type = typename traits_type::pos_type |
| using | off_type = typename traits_type::off_type |
Public Member Functions | |
| virtual | ~BasicSystemIOStreamBuf () override |
| Destructor. More... | |
| BasicSystemIOStreamBuf () | |
| Constructs a new instance of the BasicSystemIOStreamBuf. More... | |
| BasicSystemIOStreamBuf (const SharedPtr< Stream > &str, SystemIOStreamWrappingMode mode=SystemIOStreamWrappingMode::Binary, const std::locale &locale=std::locale()) | |
| Constructs a new instance of the BasicSystemIOStreamBuf. More... | |
| BasicSystemIOStreamBuf (const BasicSystemIOStreamBuf &)=delete | |
| Copy constructor. Deleted. More... | |
| BasicSystemIOStreamBuf (BasicSystemIOStreamBuf &&right) noexcept | |
| Move constructor. More... | |
| BasicSystemIOStreamBuf & | operator= (const BasicSystemIOStreamBuf &)=delete |
| Copy assignment operator. Deleted. More... | |
| BasicSystemIOStreamBuf & | operator= (BasicSystemIOStreamBuf &&right) noexcept |
| Move assignment operator. More... | |
| void | AssignRV (BasicSystemIOStreamBuf &&right) |
| Used in move constructor and move assignment operator to reset pointers and call swap(). More... | |
| void | swap (BasicSystemIOStreamBuf &right) |
| Call to swap *this and right, if they are not equal. More... | |
Protected Member Functions | |
| virtual int_type | overflow (int_type meta=traits_type::eof()) override |
| Put a character to the stream and advances one position forward. More... | |
| virtual int_type | underflow () override |
| Get an element from stream, but don't advances position. More... | |
| virtual int_type | uflow () override |
| Get an element from stream and advances one position forward. More... | |
| virtual int_type | pbackfail (int_type meta=traits_type::eof()) override |
| Put an element to stream on previous position. More... | |
| virtual pos_type | seekoff (off_type off, std::ios_base::seekdir way, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) override |
Change position by off, according to way, mode. More... | |
| virtual pos_type | seekpos (pos_type pos, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) override |
Set position pointer to absolute pos position. More... | |
| virtual std::streamsize | showmanyc () override |
| Get number of characters available. More... | |
| void | Tidy () |
| Set all pointers to nullptr. More... | |
Represents a buffer that wraps System::IO::Stream-like streams and allows them to be used as an std::iostream-like streams internal buffer.
| using System::IO::BasicSystemIOStreamBuf< Elem, Traits >::char_type = Elem |
| using System::IO::BasicSystemIOStreamBuf< Elem, Traits >::int_type = typename traits_type::int_type |
| using System::IO::BasicSystemIOStreamBuf< Elem, Traits >::Mysb = std::basic_streambuf<char_type, traits_type> |
| using System::IO::BasicSystemIOStreamBuf< Elem, Traits >::off_type = typename traits_type::off_type |
| using System::IO::BasicSystemIOStreamBuf< Elem, Traits >::pos_type = typename traits_type::pos_type |
| using System::IO::BasicSystemIOStreamBuf< Elem, Traits >::traits_type = Traits |
|
inlineoverridevirtual |
Destructor.
|
inlineexplicit |
Constructs a new instance of the BasicSystemIOStreamBuf.
|
inlineexplicit |
Constructs a new instance of the BasicSystemIOStreamBuf.
| str | Smart pointer to the stream |
| mode | Wrapping mode |
| locale | Stream's locale |
|
delete |
Copy constructor. Deleted.
|
inlinenoexcept |
Move constructor.
| right | Object to be move |
|
inline |
Used in move constructor and move assignment operator to reset pointers and call swap().
| right | Rvalue reference to object to be swap |
|
inlinenoexcept |
|
delete |
Copy assignment operator. Deleted.
|
inlineoverrideprotectedvirtual |
Put a character to the stream and advances one position forward.
| meta | A character to be put |
|
inlineoverrideprotectedvirtual |
Put an element to stream on previous position.
| meta | A character to be put |
|
inlineoverrideprotectedvirtual |
Change position by off, according to way, mode.
| off | Offset value, relative to the way parameter |
| way | Object of type std::ios_base::seekdir, indicating the origin from which the offset is applied |
| mode | Generally used to determine the position on which of the controlled sequences shall be modified: the input sequence, the output sequence, or both |
|
inlineoverrideprotectedvirtual |
Set position pointer to absolute pos position.
| pos | New absolute position for the position pointer |
| mode | Generally used to determine the position on which of the controlled sequences shall be modified: the input sequence, the output sequence, or both |
|
inlineoverrideprotectedvirtual |
Get number of characters available.
|
inline |
Call to swap *this and right, if they are not equal.
| right | Rvalue reference to object to be swap |
|
inlineprotected |
Set all pointers to nullptr.
|
inlineoverrideprotectedvirtual |
Get an element from stream and advances one position forward.
|
inlineoverrideprotectedvirtual |
Get an element from stream, but don't advances position.