From 782df0107b9e7448c195b60e370cec7b8dae60da Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Fri, 17 Nov 2017 08:50:32 +1100 Subject: [PATCH] Make *Map and Entry private to PrefilterTree. Change-Id: I2cb2bb6ad20f0e13ffc5bed00e012aff544d3e45 Reviewed-on: https://code-review.googlesource.com/19730 Reviewed-by: Paul Wankadia --- re2/prefilter_tree.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/re2/prefilter_tree.h b/re2/prefilter_tree.h index c9c9cd595..f81e1346e 100644 --- a/re2/prefilter_tree.h +++ b/re2/prefilter_tree.h @@ -28,10 +28,6 @@ namespace re2 { class PrefilterTree { public: - typedef SparseArray IntMap; - typedef std::map StdIntMap; - typedef std::map NodeMap; - PrefilterTree(); explicit PrefilterTree(int min_atom_len); ~PrefilterTree(); @@ -61,6 +57,10 @@ class PrefilterTree { // nodes of the prefilter of the regexp. void PrintPrefilter(int regexpid); + private: + typedef SparseArray IntMap; + typedef std::map StdIntMap; + typedef std::map NodeMap; // Each unique node has a corresponding Entry that helps in // passing the matching trigger information along the tree. @@ -84,7 +84,6 @@ class PrefilterTree { std::vector regexps; }; - private: // Returns true if the prefilter node should be kept. bool KeepNode(Prefilter* node) const;