MCPcopy Create free account
hub / github.com/ThatOpen/engine_web-ifc / GetCurrentLineExpressID

Method GetCurrentLineExpressID

src/cpp/web-ifc/parsing/IfcLoader.cpp:400–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398 }
399
400 uint32_t IfcLoader::GetCurrentLineExpressID() const
401 {
402 if (_lines.size()==0) return 0;
403 uint32_t prevLine = 0;
404 uint32_t pos = _tokenStream->GetReadOffset();
405 for (const auto & [key, value] : _lines) {
406 if (value->tapeOffset > pos) break;
407 prevLine = key;
408 }
409 return prevLine;
410 }
411
412 uint32_t IfcLoader::GetRefArgument() const
413 {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
GetReadOffsetMethod · 0.80

Tested by

no test coverage detected