Parcourir la source

[1067] Note why we have friend

Michal 'vorner' Vaner il y a 13 ans
Parent
commit
81613a741b
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/lib/datasrc/memory_datasrc.h

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

@@ -182,6 +182,10 @@ private:
     struct InMemoryZoneFinderImpl;
     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;
 };