ReactOS 0.4.16-dev-1133-g947c03e
__crt_stdio_input::console_input_adapter< Character > Class Template Reference

#include <corecrt_internal_stdio_input.h>

Public Types

using traits = __acrt_stdio_char_traits< Character >
 
using char_type = Character
 
using int_type = typename traits::int_type
 

Public Member Functions

 console_input_adapter () throw ()
 
bool validate () const throw ()
 
int_type get () throw ()
 
void unget (int_type const c) throw ()
 
size_t characters_read () const throw ()
 

Private Attributes

size_t _characters_read
 

Detailed Description

template<typename Character>
class __crt_stdio_input::console_input_adapter< Character >

Definition at line 32 of file corecrt_internal_stdio_input.h.

Member Typedef Documentation

◆ char_type

template<typename Character >
using __crt_stdio_input::console_input_adapter< Character >::char_type = Character

Definition at line 37 of file corecrt_internal_stdio_input.h.

◆ int_type

template<typename Character >
using __crt_stdio_input::console_input_adapter< Character >::int_type = typename traits::int_type

Definition at line 38 of file corecrt_internal_stdio_input.h.

◆ traits

template<typename Character >
using __crt_stdio_input::console_input_adapter< Character >::traits = __acrt_stdio_char_traits<Character>

Definition at line 36 of file corecrt_internal_stdio_input.h.

Constructor & Destructor Documentation

◆ console_input_adapter()

template<typename Character >
__crt_stdio_input::console_input_adapter< Character >::console_input_adapter ( )
throw (
)
inline

Member Function Documentation

◆ characters_read()

template<typename Character >
size_t __crt_stdio_input::console_input_adapter< Character >::characters_read ( ) const
throw (
)
inline

Definition at line 68 of file corecrt_internal_stdio_input.h.

69 {
70 return _characters_read;
71 }

◆ get()

template<typename Character >
int_type __crt_stdio_input::console_input_adapter< Character >::get ( )
throw (
)
inline

Definition at line 50 of file corecrt_internal_stdio_input.h.

51 {
52 int_type const c{traits::gettche_nolock()};
53 if (c != traits::eof)
55
56 return c;
57 }
const GLubyte * c
Definition: glext.h:8905
#define c
Definition: ke_i.h:80

◆ unget()

template<typename Character >
void __crt_stdio_input::console_input_adapter< Character >::unget ( int_type const  c)
throw (
)
inline

Definition at line 59 of file corecrt_internal_stdio_input.h.

60 {
61 if (c == traits::eof)
62 return;
63
65 traits::ungettch_nolock(c);
66 }

◆ validate()

template<typename Character >
bool __crt_stdio_input::console_input_adapter< Character >::validate ( ) const
throw (
)
inline

Definition at line 45 of file corecrt_internal_stdio_input.h.

46 {
47 return true;
48 }

Member Data Documentation

◆ _characters_read


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