Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: maps.h

Issue 10824229: Add out-of-line copy ctor to Maps::Iterator. (Closed) Base URL: http://seccompsandbox.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | maps.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MAPS_H__ 5 #ifndef MAPS_H__
6 #define MAPS_H__ 6 #define MAPS_H__
7 7
8 #include <elf.h> 8 #include <elf.h>
9 #include <functional> 9 #include <functional>
10 #include <map> 10 #include <map>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 friend class Iterator; 42 friend class Iterator;
43 class Iterator { 43 class Iterator {
44 friend class Maps; 44 friend class Maps;
45 45
46 protected: 46 protected:
47 explicit Iterator(Maps* maps); 47 explicit Iterator(Maps* maps);
48 Iterator(Maps* maps, bool at_beginning, bool at_end); 48 Iterator(Maps* maps, bool at_beginning, bool at_end);
49 Maps::LibraryMap::iterator& getIterator() const; 49 Maps::LibraryMap::iterator& getIterator() const;
50 50
51 public: 51 public:
52 Iterator(const Iterator& other);
52 Iterator begin(); 53 Iterator begin();
53 Iterator end(); 54 Iterator end();
54 Iterator& operator++(); 55 Iterator& operator++();
55 Iterator operator++(int i); 56 Iterator operator++(int i);
56 Library* operator*() const; 57 Library* operator*() const;
57 bool operator==(const Iterator& iter) const; 58 bool operator==(const Iterator& iter) const;
58 bool operator!=(const Iterator& iter) const; 59 bool operator!=(const Iterator& iter) const;
59 const string& name() const; 60 const string& name() const;
60 61
61 protected: 62 protected:
(...skipping 23 matching lines...) Expand all
85 const Iterator begin_iter_; 86 const Iterator begin_iter_;
86 const Iterator end_iter_; 87 const Iterator end_iter_;
87 88
88 LibraryMap libs_; 89 LibraryMap libs_;
89 char* vsyscall_; 90 char* vsyscall_;
90 }; 91 };
91 92
92 } // namespace 93 } // namespace
93 94
94 #endif // MAPS_H__ 95 #endif // MAPS_H__
OLDNEW
« no previous file with comments | « no previous file | maps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698