make Automaton_Base ctor protected

Makes explicit that Automaton_Base is intended to be used as a only base class
This commit is contained in:
Alex Coyte 2015-11-02 11:22:51 +11:00 committed by Matthew Barr
parent a255e6b678
commit 510e999738

View File

@ -114,7 +114,7 @@ void populateAccepts(const NGHolder &g, StateSet *accept, StateSet *acceptEod) {
}
class Automaton_Base {
public:
protected:
Automaton_Base(const NGHolder &graph_in,
const ue2::unordered_map<NFAVertex, u32> &state_ids_in)
: graph(graph_in), state_ids(state_ids_in) {
@ -122,6 +122,7 @@ public:
assert(alphasize <= ALPHABET_SIZE);
}
public:
static bool canPrune(const flat_set<ReportID> &) { return false; }
const NGHolder &graph;