OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace commits / 141398f

The remove has to be treated symmetrically
141398fb1f4e19c836ca58ae994b30f8d95245c7
by Linas Vepštas <linasvepstas@gmail.com> · 2026-01-21T05:04:18.000Z

Changed files (2) +9 -1

opencog/atomspace/AtomSpace.cc +8 -1
……@@ -174,7 +174,14 @@ void AtomSpace::install(void)
174174 // incoming set set up.
175175 Handle llc(get_handle());
176176 for (const AtomSpacePtr& has : _environ)
177 has->insert_atom(llc);
177 has->insert_atom(llc);
178}
179
180void AtomSpace::remove(void)
181{
182 Handle lll(get_handle());
183 for (const AtomSpacePtr& has : _environ)
184 has->remove_atom(lll);
178185}
179186
180187// ====================================================================
opencog/atomspace/AtomSpace.h +1 -0
……@@ -81,6 +81,7 @@ class AtomSpace : public Frame
8181 // Atoms are in _outgoing.
8282 std::vector<AtomSpacePtr> _environ;
8383 virtual void install(void) override;
84 virtual void remove(void) override;
8485
8586 void init();
8687 void clear_all_atoms();