aboutsummaryrefslogtreecommitdiff
path: root/src/processor/address_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/address_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/address_map.h')
-rw-r--r--src/processor/address_map.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/processor/address_map.h b/src/processor/address_map.h
index 14139e7a..1650882e 100644
--- a/src/processor/address_map.h
+++ b/src/processor/address_map.h
@@ -42,6 +42,9 @@
namespace google_breakpad {
+// Forward declarations (for later friend declarations).
+template<class, class> class AddressMapSerializer;
+
template<typename AddressType, typename EntryType>
class AddressMap {
public:
@@ -65,6 +68,8 @@ class AddressMap {
void Clear();
private:
+ friend class AddressMapSerializer<AddressType, EntryType>;
+
// Convenience types.
typedef std::map<AddressType, EntryType> AddressToEntryMap;
typedef typename AddressToEntryMap::const_iterator MapConstIterator;
@@ -77,4 +82,3 @@ class AddressMap {
} // namespace google_breakpad
#endif // PROCESSOR_ADDRESS_MAP_H__
-