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
42  : _Myoff(_Off), _Fpos(_Fpz), _Mystate()
43  { // construct with stream offset
44  }
_Statetype _Mystate
Definition: iosfwd:118
streamoff _Myoff
Definition: iosfwd:116
fpos_t _Fpos
Definition: iosfwd:117
#define _Fpz
Definition: iosfwd:25
template<class _Statetype >
__CLR_OR_THIS_CALL fpos< _Statetype >::fpos ( _Statetype  _State,
fpos_t  _Fileposition 
)
inline
47  : _Myoff(0), _Fpos(_Fileposition), _Mystate(_State)
48  { // construct with conversion state and C file position
49  }
_Statetype _Mystate
Definition: iosfwd:118
streamoff _Myoff
Definition: iosfwd:116
fpos_t _Fpos
Definition: iosfwd:117

Member Function Documentation

template<class _Statetype >
__CLR_OR_THIS_CALL fpos< _Statetype >::operator streamoff ( ) const
inline
67  { // return offset
68  return ((streamoff)(_Myoff + _FPOSOFF(_Fpos)));
69  }
_STD_BEGIN typedef _Longlong streamoff
Definition: iosfwd:21
streamoff _Myoff
Definition: iosfwd:116
#define _FPOSOFF(fp)
Definition: cstdio:30
fpos_t _Fpos
Definition: iosfwd:117
template<class _Statetype >
bool __CLR_OR_THIS_CALL fpos< _Statetype >::operator!= ( const _Myt _Right) const
inline
111  { // test for file position inequality
112  return (!(*this == _Right));
113  }
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Statetype >
_Myt __CLR_OR_THIS_CALL fpos< _Statetype >::operator+ ( streamoff  _Off) const
inline
89  { // return this + offset
90  _Myt _Tmp = *this;
91  return (_Tmp += _Off);
92  }
fpos< _Statetype > _Myt
Definition: iosfwd:38
template<class _Statetype >
_Myt& __CLR_OR_THIS_CALL fpos< _Statetype >::operator+= ( streamoff  _Off)
inline
77  { // add offset
78  _Myoff += _Off;
79  return (*this);
80  }
streamoff _Myoff
Definition: iosfwd:116
template<class _Statetype >
streamoff __CLR_OR_THIS_CALL fpos< _Statetype >::operator- ( const _Myt _Right) const
inline
72  { // return difference of file positions as an offset
73  return ((streamoff)*this - (streamoff)_Right);
74  }
_STD_BEGIN typedef _Longlong streamoff
Definition: iosfwd:21
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Statetype >
_Myt __CLR_OR_THIS_CALL fpos< _Statetype >::operator- ( streamoff  _Off) const
inline
95  { // return this - offset
96  _Myt _Tmp = *this;
97  return (_Tmp -= _Off);
98  }
fpos< _Statetype > _Myt
Definition: iosfwd:38
template<class _Statetype >
_Myt& __CLR_OR_THIS_CALL fpos< _Statetype >::operator-= ( streamoff  _Off)
inline
83  { // subtract offset
84  _Myoff -= _Off;
85  return (*this);
86  }
streamoff _Myoff
Definition: iosfwd:116
template<class _Statetype >
bool __CLR_OR_THIS_CALL fpos< _Statetype >::operator== ( const _Myt _Right) const
inline
101  { // test for file position equality
102  return ((streamoff)*this == (streamoff)_Right);
103  }
_STD_BEGIN typedef _Longlong streamoff
Definition: iosfwd:21
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Statetype >
bool __CLR_OR_THIS_CALL fpos< _Statetype >::operator== ( streamoff  _Right) const
inline
106  { // test for file position equality with streamoff
107  return ((streamoff)*this == _Right);
108  }
_STD_BEGIN typedef _Longlong streamoff
Definition: iosfwd:21
constexpr const _Ty &() _Right
Definition: algorithm:3591
template<class _Statetype >
fpos_t __CLR_OR_THIS_CALL fpos< _Statetype >::seekpos ( ) const
inline
62  { // return C file position
63  return (_Fpos);
64  }
fpos_t _Fpos
Definition: iosfwd:117
template<class _Statetype >
_Statetype __CLR_OR_THIS_CALL fpos< _Statetype >::state ( ) const
inline
52  { // return conversion state
53  return (_Mystate);
54  }
_Statetype _Mystate
Definition: iosfwd:118
template<class _Statetype >
void __CLR_OR_THIS_CALL fpos< _Statetype >::state ( _Statetype  _State)
inline
57  { // set conversion state
58  _Mystate = _State;
59  }
_Statetype _Mystate
Definition: iosfwd:118

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: