STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Types | Private Attributes | List of all members
fpos< _Statetype > Class Template Reference

Public Member Functions

__CLR_OR_THIS_CALL fpos (streamoff _Off=0)
 
__CLR_OR_THIS_CALL fpos (_Statetype _State, fpos_t _Fileposition)
 
_Statetype __CLR_OR_THIS_CALL state () const
 
void __CLR_OR_THIS_CALL state (_Statetype _State)
 
fpos_t __CLR_OR_THIS_CALL seekpos () const
 
__CLR_OR_THIS_CALL operator streamoff () const
 
streamoff __CLR_OR_THIS_CALL operator- (const _Myt &_Right) const
 
_Myt &__CLR_OR_THIS_CALL operator+= (streamoff _Off)
 
_Myt &__CLR_OR_THIS_CALL operator-= (streamoff _Off)
 
_Myt __CLR_OR_THIS_CALL operator+ (streamoff _Off) const
 
_Myt __CLR_OR_THIS_CALL operator- (streamoff _Off) const
 
bool __CLR_OR_THIS_CALL operator== (const _Myt &_Right) const
 
bool __CLR_OR_THIS_CALL operator== (streamoff _Right) const
 
bool __CLR_OR_THIS_CALL operator!= (const _Myt &_Right) const
 

Private Types

typedef fpos< _Statetype > _Myt
 

Private Attributes

streamoff _Myoff
 
fpos_t _Fpos
 
_Statetype _Mystate
 

Member Typedef Documentation

template<class _Statetype >
typedef fpos<_Statetype> fpos< _Statetype >::_Myt
private

Constructor & Destructor Documentation

template<class _Statetype >
__CLR_OR_THIS_CALL fpos< _Statetype >::fpos ( streamoff  _Off = 0)
inline
40  : _Myoff(_Off), _Fpos(0), _Mystate()
41  { // construct with stream offset
42  }
_Statetype _Mystate
Definition: iosfwd:116
streamoff _Myoff
Definition: iosfwd:114
fpos_t _Fpos
Definition: iosfwd:115
template<class _Statetype >
__CLR_OR_THIS_CALL fpos< _Statetype >::fpos ( _Statetype  _State,
fpos_t  _Fileposition 
)
inline
45  : _Myoff(0), _Fpos(_Fileposition), _Mystate(_State)
46  { // construct with conversion state and C file position
47  }
_Statetype _Mystate
Definition: iosfwd:116
streamoff _Myoff
Definition: iosfwd:114
fpos_t _Fpos
Definition: iosfwd:115
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78

Member Function Documentation

template<class _Statetype >
__CLR_OR_THIS_CALL fpos< _Statetype >::operator streamoff ( ) const
inline
65  { // return offset
66  return (_Myoff + _Fpos);
67  }
streamoff _Myoff
Definition: iosfwd:114
fpos_t _Fpos
Definition: iosfwd:115
template<class _Statetype >
bool __CLR_OR_THIS_CALL fpos< _Statetype >::operator!= ( const _Myt _Right) const
inline
109  { // test for file position inequality
110  return (!(*this == _Right));
111  }
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Statetype >
_Myt __CLR_OR_THIS_CALL fpos< _Statetype >::operator+ ( streamoff  _Off) const
inline
87  { // return this + offset
88  _Myt _Tmp = *this;
89  return (_Tmp += _Off);
90  }
fpos< _Statetype > _Myt
Definition: iosfwd:36
template<class _Statetype >
_Myt& __CLR_OR_THIS_CALL fpos< _Statetype >::operator+= ( streamoff  _Off)
inline
75  { // add offset
76  _Myoff += _Off;
77  return (*this);
78  }
streamoff _Myoff
Definition: iosfwd:114
template<class _Statetype >
streamoff __CLR_OR_THIS_CALL fpos< _Statetype >::operator- ( const _Myt _Right) const
inline
70  { // return difference of file positions as an offset
71  return ((streamoff)*this - (streamoff)_Right);
72  }
_STD_BEGIN typedef long long streamoff
Definition: iosfwd:22
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Statetype >
_Myt __CLR_OR_THIS_CALL fpos< _Statetype >::operator- ( streamoff  _Off) const
inline
93  { // return this - offset
94  _Myt _Tmp = *this;
95  return (_Tmp -= _Off);
96  }
fpos< _Statetype > _Myt
Definition: iosfwd:36
template<class _Statetype >
_Myt& __CLR_OR_THIS_CALL fpos< _Statetype >::operator-= ( streamoff  _Off)
inline
81  { // subtract offset
82  _Myoff -= _Off;
83  return (*this);
84  }
streamoff _Myoff
Definition: iosfwd:114
template<class _Statetype >
bool __CLR_OR_THIS_CALL fpos< _Statetype >::operator== ( const _Myt _Right) const
inline
99  { // test for file position equality
100  return ((streamoff)*this == (streamoff)_Right);
101  }
_STD_BEGIN typedef long long streamoff
Definition: iosfwd:22
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Statetype >
bool __CLR_OR_THIS_CALL fpos< _Statetype >::operator== ( streamoff  _Right) const
inline
104  { // test for file position equality with streamoff
105  return ((streamoff)*this == _Right);
106  }
_STD_BEGIN typedef long long streamoff
Definition: iosfwd:22
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Statetype >
fpos_t __CLR_OR_THIS_CALL fpos< _Statetype >::seekpos ( ) const
inline
60  { // return C file position
61  return (_Fpos);
62  }
fpos_t _Fpos
Definition: iosfwd:115
template<class _Statetype >
_Statetype __CLR_OR_THIS_CALL fpos< _Statetype >::state ( ) const
inline
50  { // return conversion state
51  return (_Mystate);
52  }
_Statetype _Mystate
Definition: iosfwd:116
template<class _Statetype >
void __CLR_OR_THIS_CALL fpos< _Statetype >::state ( _Statetype  _State)
inline
55  { // set conversion state
56  _Mystate = _State;
57  }
_Statetype _Mystate
Definition: iosfwd:116
_In_ size_t _Deref_pre_opt_z_ char const _In_ size_t _Inout_ mbstate_t * _State
Definition: wchar.h:78

Member Data Documentation

template<class _Statetype >
fpos_t fpos< _Statetype >::_Fpos
private
template<class _Statetype >
streamoff fpos< _Statetype >::_Myoff
private
template<class _Statetype >
_Statetype fpos< _Statetype >::_Mystate
private

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