| … | … | @@ -42,11 +42,14 @@ class StorageNode : public Node, protected BackingStore |
| 42 | 42 | friend class WriteThruProxy; |
| 43 | 43 | friend class ReadWriteProxy; |
| 44 | 44 | protected: |
| 45 | | Handle add_nocheck(AtomSpace* as, const Handle& h) const |
| 45 | |
| 46 | // Friendship cannot be inherited in c++. So we pass through selected |
| 47 | // functions to derived classes that will need them. |
| 48 | static inline Handle add_nocheck(AtomSpace* as, const Handle& h) |
| 46 | 49 | { return as->add(h); } |
| 47 | | void get_absent_atoms(const AtomSpace* as, HandleSeq& missing) const |
| 50 | static inline void get_absent_atoms(const AtomSpace* as, HandleSeq& missing) |
| 48 | 51 | { as->get_absent_atoms(missing); } |
| 49 | | void get_atoms_in_frame(const AtomSpace* as, HandleSeq& fseq) const |
| 52 | static inline void get_atoms_in_frame(const AtomSpace* as, HandleSeq& fseq) |
| 50 | 53 | { as->get_atoms_in_frame(fseq); } |
| 51 | 54 | |
| 52 | 55 | static inline void markAtomIsKey(const Handle& h) { h->markIsKey(); } |