mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-02 12:44:38 +01:00
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:
parent
361f24eac7
commit
08730fc9a6
21 changed files with 3205 additions and 46 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue