ReactOS  0.4.15-dev-2720-g5ee0925
_SPutBackC< _CharT, _Traits > Struct Template Reference
Collaboration diagram for _SPutBackC< _CharT, _Traits >:

Public Types

typedef basic_streambuf< _CharT, _Traits > _StreamBuf
 
typedef _StreamBuf::int_type int_type
 

Public Member Functions

 _SPutBackC (_StreamBuf *pfrom)
 
 ~_SPutBackC ()
 
void guard (int_type c)
 
void release ()
 

Private Attributes

_StreamBuf__pfrom
 
int_type __c
 
bool __do_guard
 

Detailed Description

template<class _CharT, class _Traits>
struct _SPutBackC< _CharT, _Traits >

Definition at line 118 of file _ostream.c.

Member Typedef Documentation

◆ _StreamBuf

template<class _CharT , class _Traits >
typedef basic_streambuf<_CharT, _Traits> _SPutBackC< _CharT, _Traits >::_StreamBuf

Definition at line 119 of file _ostream.c.

◆ int_type

template<class _CharT , class _Traits >
typedef _StreamBuf::int_type _SPutBackC< _CharT, _Traits >::int_type

Definition at line 120 of file _ostream.c.

Constructor & Destructor Documentation

◆ _SPutBackC()

template<class _CharT , class _Traits >
_SPutBackC< _CharT, _Traits >::_SPutBackC ( _StreamBuf pfrom)
inline

Definition at line 121 of file _ostream.c.

122  : __pfrom(pfrom), __c(0), __do_guard(false) {}
bool __do_guard
Definition: _ostream.c:140
_StreamBuf * __pfrom
Definition: _ostream.c:138
int_type __c
Definition: _ostream.c:139

◆ ~_SPutBackC()

template<class _CharT , class _Traits >
_SPutBackC< _CharT, _Traits >::~_SPutBackC ( )
inline

Definition at line 123 of file _ostream.c.

123  {
124  if (__do_guard) {
125  __pfrom->sputbackc(_Traits::to_char_type(__c));
126  }
127  }
bool __do_guard
Definition: _ostream.c:140
_StreamBuf * __pfrom
Definition: _ostream.c:138
int_type sputbackc(char_type __c)
Definition: _streambuf.h:241
int_type __c
Definition: _ostream.c:139

Member Function Documentation

◆ guard()

template<class _CharT , class _Traits >
void _SPutBackC< _CharT, _Traits >::guard ( int_type  c)
inline

Definition at line 129 of file _ostream.c.

129  {
130  __c = c;
131  __do_guard = true;
132  }
bool __do_guard
Definition: _ostream.c:140
#define c
Definition: ke_i.h:80
int_type __c
Definition: _ostream.c:139

◆ release()

template<class _CharT , class _Traits >
void _SPutBackC< _CharT, _Traits >::release ( )
inline

Definition at line 133 of file _ostream.c.

133  {
134  __do_guard = false;
135  }
bool __do_guard
Definition: _ostream.c:140

Member Data Documentation

◆ __c

template<class _CharT , class _Traits >
int_type _SPutBackC< _CharT, _Traits >::__c
private

◆ __do_guard

template<class _CharT , class _Traits >
bool _SPutBackC< _CharT, _Traits >::__do_guard
private

◆ __pfrom

template<class _CharT , class _Traits >
_StreamBuf* _SPutBackC< _CharT, _Traits >::__pfrom
private

Definition at line 138 of file _ostream.c.

Referenced by _SPutBackC< _CharT, _Traits >::~_SPutBackC().


The documentation for this struct was generated from the following file: