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

Method getOrInsertEntryNode

libchigraph/src/GraphFunction.cpp:192–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192Result GraphFunction::getOrInsertEntryNode(float x, float y, boost::uuids::uuid id,
193 NodeInstance** toFill) {
194 Result res;
195
196 if (auto ent = entryNode()) {
197 if (toFill != nullptr) { *toFill = ent; }
198 return res;
199 }
200
201 // invalidate the cache
202 module().updateLastEditTime();
203
204 std::unique_ptr<NodeType> entryNodeType;
205 res += createEntryNodeType(&entryNodeType);
206
207 res += insertNode(std::move(entryNodeType), x, y, id, toFill);
208
209 return res;
210}
211
212void GraphFunction::addDataInput(const DataType& type, std::string name, size_t addBefore) {
213 // invalidate the cache

Calls 1

updateLastEditTimeMethod · 0.80

Tested by

no test coverage detected