| 199 | public: |
| 200 | /** Used to pair watcher pointer with user data. */ |
| 201 | struct WatcherWithUserData { |
| 202 | DocWatcher *watcher; |
| 203 | void *userData; |
| 204 | WatcherWithUserData(DocWatcher *watcher_=0, void *userData_=0) : |
| 205 | watcher(watcher_), userData(userData_) { |
| 206 | } |
| 207 | bool operator==(const WatcherWithUserData &other) { |
| 208 | return (watcher == other.watcher) && (userData == other.userData); |
| 209 | } |
| 210 | }; |
| 211 | |
| 212 | private: |
| 213 | int refCount; |