22 #include <opencog/util/oc_assert.h>
27 using namespace opencog;
40 if (NULL == l)
return;
43 const std::vector<Handle>& oset = l->getOutgoingSet();
44 for (std::vector<Handle>::const_iterator it = oset.begin(); it != oset.end(); ++it)
54 UnorderedHandleSet::const_iterator oit = oldset.begin();
55 for (; oit != oldset.end(); ++oit)
58 if (*oit == hin)
break;
60 if (oit != oldset.end())
continue;
73 if (NULL == l)
return;
76 const std::vector<Handle>& oset = l->getOutgoingSet();
77 for (std::vector<Handle>::const_iterator it = oset.begin(); it != oset.end(); ++it)
84 UnorderedHandleSet::iterator oit = inset.begin();
85 for (; oit != inset.end(); ++oit)
87 if (*oit == hin)
break;
94 if (oit != inset.end())
168 return operator++(1);
173 while (0 < i and _s != _e) { ++_s; --i; }
std::shared_ptr< Atom > AtomPtr
void insert(Handle h, const UnorderedHandleSet &uset)
bool operator==(iterator)
std::shared_ptr< Link > LinkPtr
iterator begin(Handle) const
static const Handle UNDEFINED
void removeAtom(const AtomPtr &a)
iterator & operator=(iterator)
UnorderedHandleSet::const_iterator _e
static LinkPtr LinkCast(const Handle &h)
const UnorderedHandleSet & getIncomingSet(Handle) const
std::unordered_set< Handle, handle_hash > UnorderedHandleSet
a hash that associates the handle to its unique identificator
const UnorderedHandleSet & get(Handle h) const
void insertAtom(const AtomPtr &a)
bool operator!=(iterator)
UnorderedHandleSet::const_iterator _s