| … | … | @@ -174,7 +174,14 @@ void AtomSpace::install(void) |
| 174 | 174 | // incoming set set up. |
| 175 | 175 | Handle llc(get_handle()); |
| 176 | 176 | for (const AtomSpacePtr& has : _environ) |
| 177 | has->insert_atom(llc); | |
| 177 | has->insert_atom(llc); | |
| 178 | } | |
| 179 | ||
| 180 | void AtomSpace::remove(void) | |
| 181 | { | |
| 182 | Handle lll(get_handle()); | |
| 183 | for (const AtomSpacePtr& has : _environ) | |
| 184 | has->remove_atom(lll); | |
| 178 | 185 | } |
| 179 | 186 | |
| 180 | 187 | // ==================================================================== |
| … | … | @@ -81,6 +81,7 @@ class AtomSpace : public Frame |
| 81 | 81 | // Atoms are in _outgoing. |
| 82 | 82 | std::vector<AtomSpacePtr> _environ; |
| 83 | 83 | virtual void install(void) override; |
| 84 | virtual void remove(void) override; | |
| 84 | 85 | |
| 85 | 86 | void init(); |
| 86 | 87 | void clear_all_atoms(); |