OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-storage commits / a762b4a

More static inline goodness
a762b4a64ce231ce36cef7aa1b42a21738d6b55e
by Linas Vepštas <linasvepstas@gmail.com> · 2025-12-09T00:51:00.000Z

Changed files (1) +6 -3

opencog/persist/api/StorageNode.h +6 -3
……@@ -42,11 +42,14 @@ class StorageNode : public Node, protected BackingStore
4242 friend class WriteThruProxy;
4343 friend class ReadWriteProxy;
4444protected:
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)
4649 { 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)
4851 { 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)
5053 { as->get_atoms_in_frame(fseq); }
5154
5255 static inline void markAtomIsKey(const Handle& h) { h->markIsKey(); }