summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/bits/regex_automaton.h
diff options
context:
space:
mode:
authortimshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-20 10:07:29 +0000
committertimshen <timshen@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-20 10:07:29 +0000
commit53c19c986606bf484095e57daddcf2e33da79cad (patch)
tree7769a5568df6939da675c46462f0680614d44d01 /libstdc++-v3/include/bits/regex_automaton.h
parentfe019f032fe177df5b9ba3c31297a48ba6382cff (diff)
downloadppe42-gcc-53c19c986606bf484095e57daddcf2e33da79cad.tar.gz
ppe42-gcc-53c19c986606bf484095e57daddcf2e33da79cad.zip
2013-10-20 Tim Shen <timshen91@gmail.com>
* include/bits/regex.h: Remove virtual class _Automaton. * include/bits/regex_automaton.h: Likewise. * include/bits/regex.tcc: Adjust comment for policy changing. * include/bits/regex_executor.h: Update comments of complexity. * include/bits/regex_executor.tcc: Adjust executor choosing policy. Now DFS executor is the default one. * testsuite/util/testsuite_regex.h (regex_match_debug, regex_search_debug): Adjust for policy changing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203875 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/regex_automaton.h')
-rw-r--r--libstdc++-v3/include/bits/regex_automaton.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/libstdc++-v3/include/bits/regex_automaton.h b/libstdc++-v3/include/bits/regex_automaton.h
index cb944990b49..4fb555680ba 100644
--- a/libstdc++-v3/include/bits/regex_automaton.h
+++ b/libstdc++-v3/include/bits/regex_automaton.h
@@ -104,31 +104,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#endif
};
- /// Base class for, um, automata. Could be an NFA or a DFA. Your choice.
- template<typename _CharT, typename _TraitsT>
- class _Automaton
- {
- public:
- typedef size_t _SizeT;
-
- public:
- virtual
- ~_Automaton()
- { }
-
- virtual _SizeT
- _M_sub_count() const = 0;
-
-#ifdef _GLIBCXX_DEBUG
- virtual std::ostream&
- _M_dot(std::ostream& __ostr) const = 0;
-#endif
- };
-
template<typename _CharT, typename _TraitsT>
class _NFA
- : public _Automaton<_CharT, _TraitsT>,
- public std::vector<_State<_CharT, _TraitsT>>
+ : public std::vector<_State<_CharT, _TraitsT>>
{
public:
typedef _State<_CharT, _TraitsT> _StateT;
OpenPOWER on IntegriCloud