ReactOS 0.4.15-dev-7998-gdb93cb1
stdio_istreambuf Class Reference

#include <stdio_streambuf.h>

Inheritance diagram for stdio_istreambuf:
Collaboration diagram for stdio_istreambuf:

Public Member Functions

 stdio_istreambuf (FILE *__f)
 
 ~stdio_istreambuf ()
 
- Public Member Functions inherited from stdio_streambuf_base
 stdio_streambuf_base (FILE *)
 
 ~stdio_streambuf_base ()
 
- Public Member Functions inherited from basic_streambuf< char, char_traits< char > >
virtual ~basic_streambuf ()
 
char_type_M_eback () const
 
char_type_M_gptr () const
 
char_type_M_egptr () const
 
void _M_gbump (int __n)
 
void _M_setg (char_type *__gbegin, char_type *__gnext, char_type *__gend)
 
basic_streambuf< char, char_traits< char > > * pubsetbuf (char_type *__s, streamsize __n)
 
pos_type pubseekoff (off_type __offset, ios_base::seekdir __way, ios_base::openmode __mod=ios_base::in|ios_base::out)
 
pos_type pubseekpos (pos_type __sp, ios_base::openmode __mod=ios_base::in|ios_base::out)
 
int pubsync ()
 
int_type sputc (char_type __c)
 
streamsize sputn (const char_type *__s, streamsize __n)
 
streamsize _M_sputnc (char_type __c, streamsize __n)
 
streamsize in_avail ()
 
int_type snextc ()
 
int_type sbumpc ()
 
int_type sgetc ()
 
streamsize sgetn (char_type *__s, streamsize __n)
 
int_type sputbackc (char_type __c)
 
int_type sungetc ()
 
locale pubimbue (const locale &)
 
locale getloc () const
 
void stossc ()
 

Protected Member Functions

streamsize showmanyc ()
 
int_type underflow ()
 
int_type uflow ()
 
virtual int_type pbackfail (int_type c=traits_type::eof())
 
- Protected Member Functions inherited from stdio_streambuf_base
streambufsetbuf (char *, streamsize)
 
pos_type seekoff (off_type, ios_base::seekdir, ios_base::openmode=ios_base::in|ios_base::out)
 
pos_type seekpos (pos_type, ios_base::openmode=ios_base::in|ios_base::out)
 
int sync ()
 
- Protected Member Functions inherited from basic_streambuf< char, char_traits< char > >
 basic_streambuf ()
 
char_typeeback () const
 
char_typegptr () const
 
char_typeegptr () const
 
void gbump (int __n)
 
void setg (char_type *__gbegin, char_type *__gnext, char_type *__gend)
 
char_typepbase () const
 
char_typepptr () const
 
char_typeepptr () const
 
void pbump (int __n)
 
void setp (char_type *__pbegin, char_type *__pend)
 
virtual basic_streambuf< char, char_traits< char > > * setbuf (char_type *, streamsize)
 
virtual pos_type seekoff (off_type, ios_base::seekdir, ios_base::openmode=ios_base::in|ios_base::out)
 
virtual pos_type seekpos (pos_type, ios_base::openmode=ios_base::in|ios_base::out)
 
virtual int sync ()
 
virtual streamsize showmanyc ()
 
virtual streamsize xsgetn (char_type *__s, streamsize __n)
 
virtual int_type underflow ()
 
virtual int_type uflow ()
 
virtual int_type pbackfail (int_type=traits_type::eof())
 
virtual streamsize xsputn (const char_type *__s, streamsize __n)
 
virtual streamsize _M_xsputnc (char_type __c, streamsize __n)
 
virtual int_type overflow (int_type=traits_type::eof())
 
virtual void imbue (const locale &)
 

Additional Inherited Members

- Public Types inherited from basic_streambuf< char, char_traits< char > >
typedef char char_type
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
typedef char_traits< chartraits_type
 
- Protected Attributes inherited from stdio_streambuf_base
FILE_M_file
 

Detailed Description

Definition at line 73 of file stdio_streambuf.h.

Constructor & Destructor Documentation

◆ stdio_istreambuf()

stdio_istreambuf::stdio_istreambuf ( FILE __f)
inline

Definition at line 75 of file stdio_streambuf.h.

◆ ~stdio_istreambuf()

stdio_istreambuf::~stdio_istreambuf ( )

Definition at line 151 of file stdio_streambuf.cpp.

151{}

Member Function Documentation

◆ pbackfail()

stdio_istreambuf::int_type stdio_istreambuf::pbackfail ( int_type  c = traits_type::eof())
protectedvirtual

Definition at line 180 of file stdio_streambuf.cpp.

180 {
181 if (c != traits_type::eof()) {
182 int result = _STLP_VENDOR_CSTD::ungetc(c, _M_file);
183 return result != EOF ? result : traits_type::eof();
184 }
185 else{
186 if (this->eback() < this->gptr()) {
187 this->gbump(-1);
188 return traits_type::not_eof(c);
189 }
190 else
191 return traits_type::eof();
192 }
193}
static int_type _STLP_CALL not_eof(const int_type &__c)
Definition: char_traits.h:181
static int_type _STLP_CALL eof()
Definition: char_traits.h:193
const GLubyte * c
Definition: glext.h:8905
GLuint64EXT * result
Definition: glext.h:11304
#define EOF
Definition: stdio.h:24

◆ showmanyc()

streamsize stdio_istreambuf::showmanyc ( )
protectedvirtual

Reimplemented from basic_streambuf< char, char_traits< char > >.

Definition at line 153 of file stdio_streambuf.cpp.

154{ return 0; }

◆ uflow()

stdio_istreambuf::int_type stdio_istreambuf::uflow ( )
protectedvirtual

Reimplemented from basic_streambuf< char, char_traits< char > >.

Definition at line 171 of file stdio_streambuf.cpp.

171 {
172#ifdef _STLP_WCE
173 int c = fgetc(_M_file);
174#else
175 int c = getc(_M_file);
176#endif
177 return c != EOF ? c : traits_type::eof();
178}
_Check_return_opt_ _CRTIMP int __cdecl fgetc(_Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
#define c
Definition: ke_i.h:80

◆ underflow()

stdio_istreambuf::int_type stdio_istreambuf::underflow ( )
protectedvirtual

Reimplemented from basic_streambuf< char, char_traits< char > >.

Definition at line 156 of file stdio_streambuf.cpp.

157{
158#ifdef _STLP_WCE
159 int c = fgetc(_M_file);
160#else
161 int c = getc(_M_file);
162#endif
163 if (c != EOF) {
164 _STLP_VENDOR_CSTD::ungetc(c, _M_file);
165 return c;
166 }
167 else
168 return traits_type::eof();
169}

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