MCPcopy Create free account
hub / github.com/chigraph/chigraph / nodeTypeNames

Method nodeTypeNames

libchigraph/src/GraphModule.cpp:934–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932}
933
934std::vector<std::string> GraphModule::nodeTypeNames() const {
935 std::vector<std::string> ret;
936 std::transform(mFunctions.begin(), mFunctions.end(), std::back_inserter(ret),
937 [](auto& gPtr) { return gPtr->name(); });
938
939 for (const auto& str : structs()) {
940 ret.push_back("_make_" + str->name());
941 ret.push_back("_break_" + str->name());
942 }
943
944 if (cEnabled()) { ret.push_back("c-call"); }
945
946 return ret;
947}
948
949boost::bimap<unsigned int, NodeInstance*> GraphModule::createLineNumberAssoc() const {
950 // create a sorted list of GraphFunctions

Callers 1

Calls 3

beginMethod · 0.80
endMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected