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
This commit is contained in:
SiyangXie@gmail.com 2010-10-15 20:36:31 +00:00
parent 361f24eac7
commit 08730fc9a6
21 changed files with 3205 additions and 46 deletions

View file

@ -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;