Make *Map and Entry private to PrefilterTree.

Change-Id: I2cb2bb6ad20f0e13ffc5bed00e012aff544d3e45
Reviewed-on: https://code-review.googlesource.com/19730
Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/re2/prefilter_tree.h b/re2/prefilter_tree.h
index c9c9cd5..f81e134 100644
--- a/re2/prefilter_tree.h
+++ b/re2/prefilter_tree.h
@@ -28,10 +28,6 @@
 
 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();
@@ -61,6 +57,10 @@
   // 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.
@@ -84,7 +84,6 @@
     std::vector<int> regexps;
   };
 
- private:
   // Returns true if the prefilter node should be kept.
   bool KeepNode(Prefilter* node) const;