OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-generate commits / 333d725

Update to newer AtomSpace API's
333d725debbb00f76a9f3fc87862f1cb654ee677
by Linas Vepštas <linasvepstas@gmail.com> · 2025-10-13T07:51:43.000Z

Changed files (6) +6 -5

CMakeLists.txt +1 -1
……@@ -79,7 +79,7 @@ ADD_SUBDIRECTORY(opencog)
7979IF (CXXTEST_FOUND)
8080 ADD_CUSTOM_TARGET(tests)
8181 ADD_SUBDIRECTORY(tests EXCLUDE_FROM_ALL)
82 ADD_CUSTOM_TARGET(test
82 ADD_CUSTOM_TARGET(check
8383 DEPENDS tests
8484 WORKING_DIRECTORY tests
8585 COMMAND ${CMAKE_CTEST_COMMAND} --force-new-ctest-process --output-on-failure $(ARGS)
opencog/generate/Dictionary.h +1 -1
……@@ -67,7 +67,7 @@ public:
6767 HandleSeq joints(const Handle&) const;
6868
6969 void add_to_lexis(const Handle&);
70 void add_to_lexis(const HandleSet& lex) {
70 void add_to_lexis(const UnorderedHandleSet& lex) {
7171 for (const Handle& h: lex) add_to_lexis(h);
7272 }
7373 // void sort_lexis(const Handle&);
opencog/generate/RandomCallback.cc +1 -0
……@@ -23,6 +23,7 @@
2323#include <uuid/uuid.h>
2424
2525#include <opencog/atoms/base/Link.h>
26#include <opencog/atoms/value/FloatValue.h>
2627
2728#include "RandomCallback.h"
2829
tests/generate/AggregationUTest.cxxtest +1 -1
……@@ -100,7 +100,7 @@ void AggregationUTest::setup_dict()
100100 dict->add_pole_pair(minus, plus);
101101
102102 // The lexis to use
103 HandleSet lex;
103 UnorderedHandleSet lex;
104104 as->get_handles_by_type(lex, SECTION);
105105 dict->add_to_lexis(lex);
106106}
tests/generate/BasicNetworkUTest.cxxtest +1 -1
……@@ -91,7 +91,7 @@ void BasicNetworkUTest::setup_dict()
9191 dict->add_pole_pair(any, any);
9292
9393 // The lexis to use XXX we should generate not read from file.
94 HandleSet lex;
94 UnorderedHandleSet lex;
9595 as->get_handles_by_type(lex, SECTION);
9696 dict->add_to_lexis(lex);
9797}
tests/generate/GraphUTest.cxxtest +1 -1
……@@ -88,7 +88,7 @@ void GraphUTest::setup_dict()
8888 dict->add_pole_pair(any, any);
8989
9090 // The lexis to use XXX we should generate not read from file.
91 HandleSet lex;
91 UnorderedHandleSet lex;
9292 as->get_handles_by_type(lex, SECTION);
9393 dict->add_to_lexis(lex);
9494}