libstdc++
std::fpos Class Reference

List of all members.

Public Member Functions


Detailed Description

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:
StateTType passed to and returned from state().

Constructor & Destructor Documentation

std::fpos::fpos ( streamoff  __off) [inline]

Construct position from offset.

Definition at line 135 of file postypes.h.


Member Function Documentation

std::fpos::operator streamoff ( ) const [inline]

Convert to streamoff.

Definition at line 139 of file postypes.h.

fpos std::fpos::operator+ ( streamoff  __off) const [inline]

Add position and offset.

Definition at line 180 of file postypes.h.

fpos& std::fpos::operator+= ( streamoff  __off) [inline]

Add offset to this position.

Definition at line 156 of file postypes.h.

fpos std::fpos::operator- ( streamoff  __off) const [inline]

Subtract offset from position.

Definition at line 194 of file postypes.h.

streamoff std::fpos::operator- ( const fpos __other) const [inline]

Subtract position to return offset.

Definition at line 207 of file postypes.h.

fpos& std::fpos::operator-= ( streamoff  __off) [inline]

Subtract offset from this position.

Definition at line 167 of file postypes.h.

void std::fpos::state ( _StateT  __st) [inline]

Remember the value of st.

Definition at line 143 of file postypes.h.

_StateT std::fpos::state ( ) const [inline]

Return the last set value of st.

Definition at line 148 of file postypes.h.


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