SYNOPSIS

Public Member Functions

fpos (streamoff __off)

operator streamoff () const

fpos operator+ (streamoff __off) const

fpos & operator+= (streamoff __off)

fpos operator- (streamoff __off) const

streamoff operator- (const fpos &__other) const

fpos & operator-= (streamoff __off)

void state (_StateT __st)

_StateT state () const

Detailed Description

template<typename _StateT>class std::fpos< _StateT >

Class representing stream positions.

The standard places no requirements upon the template parameter StateT. In this implementation StateT must be DefaultConstructible, CopyConstructible and Assignable. The standard only requires that fpos should contain a member of type StateT. In this implementation it also contains an offset stored as a signed integer.

Parameters:

StateT Type passed to and returned from state().

Definition at line 112 of file postypes.h.

Constructor & Destructor Documentation

template<typename _StateT> \fBstd::fpos\fP< _StateT >::\fBfpos\fP (\fBstreamoff\fP__off)\fC [inline]\fP

Construct position from offset.

Definition at line 133 of file postypes.h.

Member Function Documentation

template<typename _StateT> \fBstd::fpos\fP< _StateT >::operator \fBstreamoff\fP () const\fC [inline]\fP

Convert to streamoff.

Definition at line 137 of file postypes.h.

template<typename _StateT> \fBfpos\fP \fBstd::fpos\fP< _StateT >::operator+ (\fBstreamoff\fP__off) const\fC [inline]\fP

Add position and offset.

Definition at line 178 of file postypes.h.

template<typename _StateT> \fBfpos\fP& \fBstd::fpos\fP< _StateT >::operator+= (\fBstreamoff\fP__off)\fC [inline]\fP

Add offset to this position.

Definition at line 154 of file postypes.h.

template<typename _StateT> \fBfpos\fP \fBstd::fpos\fP< _StateT >::operator- (\fBstreamoff\fP__off) const\fC [inline]\fP

Subtract offset from position.

Definition at line 192 of file postypes.h.

template<typename _StateT> \fBstreamoff\fP \fBstd::fpos\fP< _StateT >::operator- (const \fBfpos\fP< _StateT > &__other) const\fC [inline]\fP

Subtract position to return offset.

Definition at line 205 of file postypes.h.

template<typename _StateT> \fBfpos\fP& \fBstd::fpos\fP< _StateT >::operator-= (\fBstreamoff\fP__off)\fC [inline]\fP

Subtract offset from this position.

Definition at line 165 of file postypes.h.

template<typename _StateT> void \fBstd::fpos\fP< _StateT >::state (_StateT__st)\fC [inline]\fP

Remember the value of st.

Definition at line 141 of file postypes.h.

template<typename _StateT> _StateT \fBstd::fpos\fP< _StateT >::state () const\fC [inline]\fP

Return the last set value of st.

Definition at line 146 of file postypes.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.