22 #include <opencog/atomspace/atom_types.h>
30 static const char alphanum[] =
32 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
33 "abcdefghijklmnopqrstuvwxyz";
34 static const int len = 8;
40 for (
int i = 0; i < len; ++i) {
41 name += alphanum[rand() % (
sizeof(alphanum) - 1)];
58 for (
const Handle& oh : oset)
Handle add_node(Type t, const std::string &name="", bool async=false)
std::vector< Handle > HandleSeq
a list of handles
Handle add_prefixed_node(AtomSpace &as, Type t, const std::string &prefix)
std::shared_ptr< Link > LinkPtr
bool remove_hypergraph(AtomSpace &as, Handle h)
bool remove_atom(Handle h, bool recursive=false)
Handle get_handle(Type t, const std::string &str)
bool is_valid_handle(Handle h) const
static LinkPtr LinkCast(const Handle &h)
unsigned short Type
type of Atoms, represented as short integer (16 bits)