std::fpos< _StateT >(3) Library Functions Manual std::fpos< _StateT >(3)
NAME
std::fpos< _StateT > -
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> std::fpos< _StateT >::fpos (streamoff__off) [inline]
Construct position from offset.
Definition at line 133 of file postypes.h.
Member Function Documentation
template<typename _StateT> std::fpos< _StateT >::operator streamoff () const [inline]
Convert to streamoff.
Definition at line 137 of file postypes.h.
template<typename _StateT> fpos std::fpos< _StateT >::operator+ (streamoff__off) const [inline]
Add position and offset.
Definition at line 178 of file postypes.h.
template<typename _StateT> fpos& std::fpos< _StateT >::operator+= (streamoff__off) [inline]
Add offset to this position.
Definition at line 154 of file postypes.h.
template<typename _StateT> fpos std::fpos< _StateT >::operator- (streamoff__off) const [inline]
Subtract offset from position.
Definition at line 192 of file postypes.h.
template<typename _StateT> streamoff std::fpos< _StateT >::operator- (const fpos< _StateT > &__other) const [inline]
Subtract position to return offset.
Definition at line 205 of file postypes.h.
template<typename _StateT> fpos& std::fpos< _StateT >::operator-= (streamoff__off) [inline]
Subtract offset from this position.
Definition at line 165 of file postypes.h.
template<typename _StateT> void std::fpos< _StateT >::state (_StateT__st) [inline]
Remember the value of st.
Definition at line 141 of file postypes.h.
template<typename _StateT> _StateT std::fpos< _StateT >::state () const [inline]
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.
libstdc++ Tue Jun 10 2014 std::fpos< _StateT >(3)
Check Out this Related Man Page
std::__detail::_Scanner< _InputIterator >(3) Library Functions Manual std::__detail::_Scanner< _InputIterator >(3)
NAME
std::__detail::_Scanner< _InputIterator > -
SYNOPSIS
Inherits std::__detail::_Scanner_base.
Public Types
typedef std::iterator_traits
< _IteratorT >::value_type _CharT"
typedef const std::ctype< _CharT > _CtypeT
typedef
regex_constants::syntax_option_type _FlagT"
typedef _InputIterator _IteratorT
typedef unsigned int _StateT
typedef std::basic_string< _CharT > _StringT
enum _TokenT { _S_token_anychar, _S_token_backref, _S_token_bracket_begin, _S_token_bracket_end, _S_token_inverse_class,
_S_token_char_class_name, _S_token_closure0, _S_token_closure1, _S_token_collelem_multi, _S_token_collelem_single, _S_token_collsymbol,
_S_token_comma, _S_token_dash, _S_token_dup_count, _S_token_eof, _S_token_equiv_class_name, _S_token_interval_begin,
_S_token_interval_end, _S_token_line_begin, _S_token_line_end, _S_token_opt, _S_token_or, _S_token_ord_char, _S_token_quoted_char,
_S_token_subexpr_begin, _S_token_subexpr_end, _S_token_word_begin, _S_token_word_end, _S_token_unknown }
Public Member Functions
_Scanner (_IteratorT __begin, _IteratorT __end, _FlagT __flags, std::locale __loc)
void _M_advance ()
_TokenT _M_token () const
const _StringT & _M_value () const
Static Public Attributes
static constexpr _StateT _S_state_at_start
static constexpr _StateT _S_state_in_brace
static constexpr _StateT _S_state_in_bracket
Detailed Description
template<typename _InputIterator>class std::__detail::_Scanner< _InputIterator >
struct _Scanner. Scans an input range for regex tokens.
The _Scanner class interprets the regular expression pattern in the input range passed to its constructor as a sequence of parse tokens
passed to the regular expression compiler. The sequence of tokens provided depends on the flag settings passed to the constructor:
different regular expression grammars will interpret the same input pattern in syntactically different ways.
Definition at line 65 of file regex_compiler.h.
Member Enumeration Documentation
template<typename _InputIterator> enum std::__detail::_Scanner::_TokenT
Token types returned from the scanner.
Definition at line 75 of file regex_compiler.h.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Jun 10 2014 std::__detail::_Scanner< _InputIterator >(3)