26 using namespace opencog;
42 size_t atom_count = 0;
47 Type current_type = 0;
48 while (it.
s != it.
send)
51 if ((type == current_type) ||
55 atom_count +=
idx.at(current_type).size();
73 while (it.
s != it.
send)
79 it.
se = it.
s->begin();
80 if (it.
se != it.
s->end())
return it;
124 if ((v.
s == v.
send) && (s == send))
return true;
130 if ((v.
s == v.
send) && (s != send))
return v.
se != se;
131 if ((v.
s != v.
send) && (s == send))
return v.
se != se;
137 return operator++(1);
142 if (s == send)
return *
this;
153 if ((type == currtype) ||
157 if (se != s->end())
return *
this;
UnorderedAtomSet::const_iterator se
iterator & operator=(iterator)
iterator begin(Type, bool) const
std::vector< UnorderedAtomSet >::const_iterator s
std::vector< UnorderedAtomSet > idx
ClassServer & classserver(ClassServerFactory *=ClassServer::createInstance)
size_t getNumAtomsOfType(Type type, bool subclass) const
static const Handle UNDEFINED
Type getNumberOfClasses()
bool isA(Type sub, Type super)
bool operator==(iterator)
unsigned short Type
type of Atoms, represented as short integer (16 bits)
bool operator!=(iterator)
std::vector< UnorderedAtomSet >::const_iterator send