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

Method removeType

libchigraph/src/GraphStruct.cpp:95–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void GraphStruct::removeType(size_t id, bool updateReferences) {
96 assert(id < types().size());
97
98 // invalidate the cache
99 module().updateLastEditTime();
100
101 mTypes.erase(mTypes.begin() + id);
102
103 // invalidate the current DataType
104 mDataType = {};
105
106 if (updateReferences) { updateNodeReferences(); }
107}
108
109DataType GraphStruct::dataType() {
110 // if we have already calculated this, use that

Callers

nothing calls this directly

Calls 2

updateLastEditTimeMethod · 0.80
beginMethod · 0.80

Tested by

no test coverage detected