aboutsummaryrefslogtreecommitdiff
path: root/src/processor/contained_range_map.h
diff options
context:
space:
mode:
authorSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-10-15 20:36:31 +0000
committerSiyangXie@gmail.com <SiyangXie@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-10-15 20:36:31 +0000
commit08730fc9a639e5b962f9a803ae8f5e91630e9484 (patch)
treeaf0d4fe8db2618401806a1c936320b756da37d08 /src/processor/contained_range_map.h
parentFix some compiler warnings: char*->const char*, default in swtch. (diff)
downloadbreakpad-08730fc9a639e5b962f9a803ae8f5e91630e9484.tar.xz
Add static version of map wrappers and corresponding serializers.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@714 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/contained_range_map.h')
-rw-r--r--src/processor/contained_range_map.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/processor/contained_range_map.h b/src/processor/contained_range_map.h
index f30016f3..dfc95484 100644
--- a/src/processor/contained_range_map.h
+++ b/src/processor/contained_range_map.h
@@ -66,6 +66,8 @@
namespace google_breakpad {
+// Forward declarations (for later friend declarations of specialized template).
+template<class, class> class ContainedRangeMapSerializer;
template<typename AddressType, typename EntryType>
class ContainedRangeMap {
@@ -103,6 +105,8 @@ class ContainedRangeMap {
void Clear();
private:
+ friend class ContainedRangeMapSerializer<AddressType, EntryType>;
+
// AddressToRangeMap stores pointers. This makes reparenting simpler in
// StoreRange, because it doesn't need to copy entire objects.
typedef std::map<AddressType, ContainedRangeMap *> AddressToRangeMap;