ReactOS  0.4.14-dev-57-g333b8f1
num_get< _CharT, _InputIter > Class Template Reference

#include <_facets_fwd.h>

Inheritance diagram for num_get< _CharT, _InputIter >:
Collaboration diagram for num_get< _CharT, _InputIter >:

Public Types

typedef _CharT char_type
 
typedef _InputIter iter_type
 

Public Member Functions

 num_get (size_t __refs=0)
 
_InputIter get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
 
_InputIter get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, long &__val) const
 
_InputIter get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, unsigned short &__val) const
 
_InputIter get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, unsigned int &__val) const
 
_InputIter get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, unsigned long &__val) const
 
_InputIter get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, float &__val) const
 
_InputIter get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, double &__val) const
 
_InputIter get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, long double &__val) const
 
_InputIter get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, void *&__val) const
 

Static Public Attributes

static locale::id id
 

Protected Types

typedef string string_type
 
typedef ctype< _CharT > _Ctype
 
typedef numpunct< _CharT > _Numpunct
 

Protected Member Functions

 ~num_get ()
 
virtual _InputIter do_get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
 
virtual _InputIter do_get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, long &__val) const
 
virtual _InputIter do_get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, unsigned short &__val) const
 
virtual _InputIter do_get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, unsigned int &__val) const
 
virtual _InputIter do_get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, unsigned long &__val) const
 
virtual _InputIter do_get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, float &__val) const
 
virtual _InputIter do_get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, double &__val) const
 
virtual _InputIter do_get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, void *&__p) const
 
virtual _InputIter do_get (_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, long double &__val) const
 
- Protected Member Functions inherited from locale::facet
 facet (size_t __init_count=0)
 
virtual ~facet ()
 
- Protected Member Functions inherited from _Refcount_Base
 _Refcount_Base (__stl_atomic_t __n)
 
__stl_atomic_t _M_incr ()
 
__stl_atomic_t _M_decr ()
 

Detailed Description

template<class _CharT, class _InputIter>
class num_get< _CharT, _InputIter >

Definition at line 28 of file _facets_fwd.h.

Member Typedef Documentation

◆ _Ctype

template<class _CharT, class _InputIter>
typedef ctype<_CharT> num_get< _CharT, _InputIter >::_Ctype
protected

Definition at line 129 of file _num_get.h.

◆ _Numpunct

template<class _CharT, class _InputIter>
typedef numpunct<_CharT> num_get< _CharT, _InputIter >::_Numpunct
protected

Definition at line 130 of file _num_get.h.

◆ char_type

template<class _CharT, class _InputIter>
typedef _CharT num_get< _CharT, _InputIter >::char_type

Definition at line 58 of file _num_get.h.

◆ iter_type

template<class _CharT, class _InputIter>
typedef _InputIter num_get< _CharT, _InputIter >::iter_type

Definition at line 59 of file _num_get.h.

◆ string_type

template<class _CharT, class _InputIter>
typedef string num_get< _CharT, _InputIter >::string_type
protected

Definition at line 128 of file _num_get.h.

Constructor & Destructor Documentation

◆ num_get()

template<class _CharT, class _InputIter>
num_get< _CharT, _InputIter >::num_get ( size_t  __refs = 0)
inlineexplicit

Definition at line 61 of file _num_get.h.

61 : locale::facet(__refs) {}

◆ ~num_get()

template<class _CharT, class _InputIter>
num_get< _CharT, _InputIter >::~num_get ( )
inlineprotected

Definition at line 126 of file _num_get.h.

126 {}

Member Function Documentation

◆ do_get() [1/9]

template<class _CharT , class _InputIter >
_InputIter num_get< _CharT, _InputIter >::do_get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
bool __val 
) const
protectedvirtual

Definition at line 499 of file _num_get.c.

500  {
501  if (__s.flags() & ios_base::boolalpha) {
502  return _STLP_PRIV __do_get_alphabool(__in_ite, __end, __s, __err, __x, (_CharT*)0);
503  }
504  else {
505  long __lx;
506  _InputIter __tmp = _STLP_PRIV __do_get_integer(__in_ite, __end, __s, __err, __lx, (_CharT*)0 );
507  if (!(__err & ios_base::failbit)) {
508  if (__lx == 0)
509  __x = false;
510  else if (__lx == 1)
511  __x = true;
512  else
513  __err |= ios_base::failbit;
514  }
515  return __tmp;
516  }
517 }
_InputIter _STLP_CALL __do_get_integer(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, _Integer &__val, _CharT *)
Definition: _num_get.c:247
ios_base &_STLP_CALL boolalpha(ios_base &__s)
Definition: _ios_base.h:267
_InputIter _STLP_CALL __do_get_alphabool(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, bool &__x, _CharT *)
Definition: _num_get.c:449
#define _STLP_PRIV
Definition: _dm.h:70

Referenced by num_get< _CharT, _InputIter >::get().

◆ do_get() [2/9]

template<class _CharT , class _InputIter >
_InputIter num_get< _CharT, _InputIter >::do_get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
long __val 
) const
protectedvirtual

Definition at line 537 of file _num_get.c.

539 { return _STLP_PRIV __do_get_integer(__in_ite, __end, __str, __err, __val, (_CharT*)0 ); }
_InputIter _STLP_CALL __do_get_integer(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, _Integer &__val, _CharT *)
Definition: _num_get.c:247
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
#define _STLP_PRIV
Definition: _dm.h:70

◆ do_get() [3/9]

template<class _CharT , class _InputIter >
_InputIter num_get< _CharT, _InputIter >::do_get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
unsigned short __val 
) const
protectedvirtual

Definition at line 543 of file _num_get.c.

546 { return _STLP_PRIV __do_get_integer(__in_ite, __end, __str, __err, __val, (_CharT*)0 ); }
_InputIter _STLP_CALL __do_get_integer(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, _Integer &__val, _CharT *)
Definition: _num_get.c:247
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
#define _STLP_PRIV
Definition: _dm.h:70

◆ do_get() [4/9]

template<class _CharT , class _InputIter >
_InputIter num_get< _CharT, _InputIter >::do_get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
unsigned int __val 
) const
protectedvirtual

Definition at line 550 of file _num_get.c.

553 { return _STLP_PRIV __do_get_integer(__in_ite, __end, __str, __err, __val, (_CharT*)0 ); }
_InputIter _STLP_CALL __do_get_integer(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, _Integer &__val, _CharT *)
Definition: _num_get.c:247
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
#define _STLP_PRIV
Definition: _dm.h:70

◆ do_get() [5/9]

template<class _CharT , class _InputIter >
_InputIter num_get< _CharT, _InputIter >::do_get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
unsigned long __val 
) const
protectedvirtual

Definition at line 557 of file _num_get.c.

560 { return _STLP_PRIV __do_get_integer(__in_ite, __end, __str, __err, __val, (_CharT*)0 ); }
_InputIter _STLP_CALL __do_get_integer(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, _Integer &__val, _CharT *)
Definition: _num_get.c:247
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
#define _STLP_PRIV
Definition: _dm.h:70

◆ do_get() [6/9]

template<class _CharT , class _InputIter >
_InputIter num_get< _CharT, _InputIter >::do_get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
float &  __val 
) const
protectedvirtual

Definition at line 564 of file _num_get.c.

567 { return _STLP_PRIV __do_get_float(__in_ite, __end, __str, __err, __val, (_CharT*)0 ); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
#define _STLP_PRIV
Definition: _dm.h:70
_InputIter _STLP_CALL __do_get_float(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, _Float &__val, _CharT *)
Definition: _num_get.c:427

◆ do_get() [7/9]

template<class _CharT , class _InputIter >
_InputIter num_get< _CharT, _InputIter >::do_get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
double __val 
) const
protectedvirtual

Definition at line 571 of file _num_get.c.

574 { return _STLP_PRIV __do_get_float(__in_ite, __end, __str, __err, __val, (_CharT*)0 ); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
#define _STLP_PRIV
Definition: _dm.h:70
_InputIter _STLP_CALL __do_get_float(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, _Float &__val, _CharT *)
Definition: _num_get.c:427

◆ do_get() [8/9]

template<class _CharT , class _InputIter >
_InputIter num_get< _CharT, _InputIter >::do_get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
void *&  __p 
) const
protectedvirtual

Definition at line 587 of file _num_get.c.

589  {
590 #if defined (_STLP_LONG_LONG) && !defined (__MRC__) //*ty 12/07/2001 - MrCpp can not cast from long long to void*
591  unsigned _STLP_LONG_LONG __val;
592 #else
593  unsigned long __val;
594 #endif
595  iter_type __tmp = _STLP_PRIV __do_get_integer(__in_ite, __end, __str, __err, __val, (_CharT*)0 );
596  if (!(__err & ios_base::failbit))
597  __p = __REINTERPRET_CAST(void*, __val);
598  return __tmp;
599 }
_InputIter _STLP_CALL __do_get_integer(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, _Integer &__val, _CharT *)
Definition: _num_get.c:247
#define _STLP_LONG_LONG
Definition: _apcc.h:12
_InputIter iter_type
Definition: _num_get.h:59
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
#define _STLP_PRIV
Definition: _dm.h:70
#define __REINTERPRET_CAST(__x, __y)
Definition: features.h:586

◆ do_get() [9/9]

template<class _CharT , class _InputIter >
_InputIter num_get< _CharT, _InputIter >::do_get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
long double __val 
) const
protectedvirtual

Definition at line 579 of file _num_get.c.

582 { return _STLP_PRIV __do_get_float(__in_ite, __end, __str, __err, __val, (_CharT*)0 ); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
#define _STLP_PRIV
Definition: _dm.h:70
_InputIter _STLP_CALL __do_get_float(_InputIter &__in_ite, _InputIter &__end, ios_base &__str, ios_base::iostate &__err, _Float &__val, _CharT *)
Definition: _num_get.c:427

◆ get() [1/9]

template<class _CharT, class _InputIter>
_InputIter num_get< _CharT, _InputIter >::get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
bool __val 
) const
inline

Definition at line 64 of file _num_get.h.

66  { return do_get(__ii, __end, __str, __err, __val); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
virtual _InputIter do_get(_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
Definition: _num_get.c:499

◆ get() [2/9]

template<class _CharT, class _InputIter>
_InputIter num_get< _CharT, _InputIter >::get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
long __val 
) const
inline

Definition at line 79 of file _num_get.h.

81  { return do_get(__ii, __end, __str, __err, __val); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
virtual _InputIter do_get(_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
Definition: _num_get.c:499

◆ get() [3/9]

template<class _CharT, class _InputIter>
_InputIter num_get< _CharT, _InputIter >::get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
unsigned short __val 
) const
inline

Definition at line 83 of file _num_get.h.

85  { return do_get(__ii, __end, __str, __err, __val); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
virtual _InputIter do_get(_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
Definition: _num_get.c:499

◆ get() [4/9]

template<class _CharT, class _InputIter>
_InputIter num_get< _CharT, _InputIter >::get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
unsigned int __val 
) const
inline

Definition at line 87 of file _num_get.h.

89  { return do_get(__ii, __end, __str, __err, __val); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
virtual _InputIter do_get(_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
Definition: _num_get.c:499

◆ get() [5/9]

template<class _CharT, class _InputIter>
_InputIter num_get< _CharT, _InputIter >::get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
unsigned long __val 
) const
inline

Definition at line 91 of file _num_get.h.

93  { return do_get(__ii, __end, __str, __err, __val); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
virtual _InputIter do_get(_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
Definition: _num_get.c:499

◆ get() [6/9]

template<class _CharT, class _InputIter>
_InputIter num_get< _CharT, _InputIter >::get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
float &  __val 
) const
inline

Definition at line 105 of file _num_get.h.

107  { return do_get(__ii, __end, __str, __err, __val); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
virtual _InputIter do_get(_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
Definition: _num_get.c:499

◆ get() [7/9]

template<class _CharT, class _InputIter>
_InputIter num_get< _CharT, _InputIter >::get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
double __val 
) const
inline

Definition at line 109 of file _num_get.h.

111  { return do_get(__ii, __end, __str, __err, __val); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
virtual _InputIter do_get(_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
Definition: _num_get.c:499

◆ get() [8/9]

template<class _CharT, class _InputIter>
_InputIter num_get< _CharT, _InputIter >::get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
long double __val 
) const
inline

Definition at line 114 of file _num_get.h.

116  { return do_get(__ii, __end, __str, __err, __val); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
virtual _InputIter do_get(_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
Definition: _num_get.c:499

◆ get() [9/9]

template<class _CharT, class _InputIter>
_InputIter num_get< _CharT, _InputIter >::get ( _InputIter  __ii,
_InputIter  __end,
ios_base __str,
ios_base::iostate __err,
void *&  __val 
) const
inline

Definition at line 119 of file _num_get.h.

121  { return do_get(__ii, __end, __str, __err, __val); }
_STLP_INLINE_LOOP _InputIter const _Tp & __val
Definition: _algobase.h:656
virtual _InputIter do_get(_InputIter __ii, _InputIter __end, ios_base &__str, ios_base::iostate &__err, bool &__val) const
Definition: _num_get.c:499

Member Data Documentation

◆ id

template<class _CharT, class _InputIter>
_STLP_MOVE_TO_STD_NAMESPACE locale::id num_get< _CharT, _InputIterator >::id
static

Definition at line 123 of file _num_get.h.


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