Browse Source

[1067] Note why we have friend

Michal 'vorner' Vaner 13 years ago
parent
commit
81613a741b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/datasrc/memory_datasrc.h

+ 4 - 0
src/lib/datasrc/memory_datasrc.h

@@ -182,6 +182,10 @@ private:
     struct InMemoryZoneFinderImpl;
     struct InMemoryZoneFinderImpl;
     InMemoryZoneFinderImpl* impl_;
     InMemoryZoneFinderImpl* impl_;
     //@}
     //@}
+    // The friend here is for InMemoryClient::getIterator. The iterator
+    // needs to access the data inside the zone, so the InMemoryClient
+    // extracts the pointer to data and puts it into the iterator.
+    // The access is read only.
     friend class InMemoryClient;
     friend class InMemoryClient;
 };
 };