Skip to content

Commit

Permalink
Make *Map and Entry private to PrefilterTree.
Browse files Browse the repository at this point in the history
Change-Id: I2cb2bb6ad20f0e13ffc5bed00e012aff544d3e45
Reviewed-on: https://code-review.googlesource.com/19730
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed Nov 16, 2017
1 parent ee52f03 commit 782df01
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions re2/prefilter_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ namespace re2 {

class PrefilterTree {
public:
typedef SparseArray<int> IntMap;
typedef std::map<int, int> StdIntMap;
typedef std::map<string, Prefilter*> NodeMap;

PrefilterTree();
explicit PrefilterTree(int min_atom_len);
~PrefilterTree();
Expand Down Expand Up @@ -61,6 +57,10 @@ class PrefilterTree {
// nodes of the prefilter of the regexp.
void PrintPrefilter(int regexpid);

private:
typedef SparseArray<int> IntMap;
typedef std::map<int, int> StdIntMap;
typedef std::map<string, Prefilter*> NodeMap;

// Each unique node has a corresponding Entry that helps in
// passing the matching trigger information along the tree.
Expand All @@ -84,7 +84,6 @@ class PrefilterTree {
std::vector<int> regexps;
};

private:
// Returns true if the prefilter node should be kept.
bool KeepNode(Prefilter* node) const;

Expand Down

0 comments on commit 782df01

Please sign in to comment.