ReactOS 0.4.16-dev-303-g11d5cb8
fpos< _StateT > Class Template Reference

#include <char_traits.h>

Public Member Functions

 fpos (streamoff __pos)
 
 fpos ()
 
 operator streamoff () const
 
bool operator== (const fpos &__y) const
 
bool operator!= (const fpos &__y) const
 
fposoperator+= (streamoff __off)
 
fposoperator-= (streamoff __off)
 
fpos operator+ (streamoff __off)
 
fpos operator- (streamoff __off)
 
_StateT state () const
 
void state (_StateT __st)
 

Private Attributes

streamoff _M_pos
 
_StateT _M_st
 

Detailed Description

template<class _StateT>
class fpos< _StateT >

Definition at line 87 of file char_traits.h.

Constructor & Destructor Documentation

◆ fpos() [1/2]

template<class _StateT >
fpos< _StateT >::fpos ( streamoff  __pos)
inline

Definition at line 89 of file char_traits.h.

89: _M_pos(__pos), _M_st(_STLP_NULL_CHAR_INIT(_StateT)) {}
#define _STLP_NULL_CHAR_INIT(_ChT)
Definition: char_traits.h:55
_StateT _M_st
Definition: char_traits.h:124
streamoff _M_pos
Definition: char_traits.h:123

◆ fpos() [2/2]

template<class _StateT >
fpos< _StateT >::fpos ( )
inline

Definition at line 90 of file char_traits.h.

90: _M_pos(0), _M_st(_STLP_NULL_CHAR_INIT(_StateT)) {}

Member Function Documentation

◆ operator streamoff()

template<class _StateT >
fpos< _StateT >::operator streamoff ( ) const
inline

Definition at line 92 of file char_traits.h.

92{ return _M_pos; }

◆ operator!=()

template<class _StateT >
bool fpos< _StateT >::operator!= ( const fpos< _StateT > &  __y) const
inline

Definition at line 96 of file char_traits.h.

97 { return _M_pos != __y._M_pos; }

◆ operator+()

template<class _StateT >
fpos fpos< _StateT >::operator+ ( streamoff  __off)
inline

Definition at line 108 of file char_traits.h.

108 {
109 fpos __tmp(*this);
110 __tmp += __off;
111 return __tmp;
112 }

◆ operator+=()

template<class _StateT >
fpos & fpos< _StateT >::operator+= ( streamoff  __off)
inline

Definition at line 99 of file char_traits.h.

99 {
100 _M_pos += __off;
101 return *this;
102 }

◆ operator-()

template<class _StateT >
fpos fpos< _StateT >::operator- ( streamoff  __off)
inline

Definition at line 113 of file char_traits.h.

113 {
114 fpos __tmp(*this);
115 __tmp -= __off;
116 return __tmp;
117 }

◆ operator-=()

template<class _StateT >
fpos & fpos< _StateT >::operator-= ( streamoff  __off)
inline

Definition at line 103 of file char_traits.h.

103 {
104 _M_pos -= __off;
105 return *this;
106 }

◆ operator==()

template<class _StateT >
bool fpos< _StateT >::operator== ( const fpos< _StateT > &  __y) const
inline

Definition at line 94 of file char_traits.h.

95 { return _M_pos == __y._M_pos; }

◆ state() [1/2]

template<class _StateT >
_StateT fpos< _StateT >::state ( ) const
inline

Definition at line 120 of file char_traits.h.

120{ return _M_st; }

◆ state() [2/2]

template<class _StateT >
void fpos< _StateT >::state ( _StateT  __st)
inline

Definition at line 121 of file char_traits.h.

121{ _M_st = __st; }

Member Data Documentation

◆ _M_pos

◆ _M_st

template<class _StateT >
_StateT fpos< _StateT >::_M_st
private

Definition at line 124 of file char_traits.h.

Referenced by fpos< _StateT >::state().


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