rdfa: make getImplAlphaSize() inline

This commit is contained in:
Justin Viiret 2017-08-10 10:53:39 +10:00 committed by Matthew Barr
parent 84030aa0fc
commit 14333f5b0b
2 changed files with 1 additions and 5 deletions

View File

@ -33,10 +33,6 @@ namespace ue2 {
// prevent weak vtables // prevent weak vtables
raw_dfa::~raw_dfa() {} raw_dfa::~raw_dfa() {}
u16 raw_dfa::getImplAlphaSize() const {
return alpha_size - N_SPECIAL_SYMBOL;
}
void raw_dfa::stripExtraEodReports(void) { void raw_dfa::stripExtraEodReports(void) {
/* if a state generates a given report as a normal accept - then it does /* if a state generates a given report as a normal accept - then it does
* not also need to generate an eod report for it */ * not also need to generate an eod report for it */

View File

@ -81,7 +81,7 @@ struct raw_dfa {
explicit raw_dfa(nfa_kind k) : kind(k) {} explicit raw_dfa(nfa_kind k) : kind(k) {}
virtual ~raw_dfa(); virtual ~raw_dfa();
u16 getImplAlphaSize() const; u16 getImplAlphaSize() const { return alpha_size - N_SPECIAL_SYMBOL; }
virtual void stripExtraEodReports(void); virtual void stripExtraEodReports(void);
bool hasEodReports(void) const; bool hasEodReports(void) const;
}; };