Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 namespace std _GLIBCXX_VISIBILITY(default)
00032 {
00033 _GLIBCXX_BEGIN_NAMESPACE_VERSION
00034
00035 namespace __regex
00036 {
00037
00038 struct _PatternCursor
00039 {
00040 virtual ~_PatternCursor() { };
00041 virtual void _M_next() = 0;
00042 virtual bool _M_at_end() const = 0;
00043 };
00044
00045
00046 template<typename _FwdIterT>
00047 class _SpecializedCursor
00048 : public _PatternCursor
00049 {
00050 public:
00051 _SpecializedCursor(const _FwdIterT& __b, const _FwdIterT __e)
00052 : _M_b(__b), _M_c(__b), _M_e(__e)
00053 { }
00054
00055 typename std::iterator_traits<_FwdIterT>::value_type
00056 _M_current() const
00057 { return *_M_c; }
00058
00059 void
00060 _M_next()
00061 { ++_M_c; }
00062
00063 _FwdIterT
00064 _M_pos() const
00065 { return _M_c; }
00066
00067 const _FwdIterT&
00068 _M_begin() const
00069 { return _M_b; }
00070
00071 const _FwdIterT&
00072 _M_end() const
00073 { return _M_e; }
00074
00075 bool
00076 _M_at_end() const
00077 { return _M_c == _M_e; }
00078
00079 private:
00080 _FwdIterT _M_b;
00081 _FwdIterT _M_c;
00082 _FwdIterT _M_e;
00083 };
00084
00085
00086 template<typename _FwdIterT>
00087 inline _SpecializedCursor<_FwdIterT>
00088 __cursor(const _FwdIterT& __b, const _FwdIterT __e)
00089 { return _SpecializedCursor<_FwdIterT>(__b, __e); }
00090
00091 }
00092
00093 _GLIBCXX_END_NAMESPACE_VERSION
00094 }