MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / GetIndex

Method GetIndex

src/ObjectModel/ObjectModel.cpp:578–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576 : ObjectExplorationContext(nullptr, false, false, -1, -1) { }
577
578int32_t ObjectExplorationContext::GetIndex(size_t n) const noexcept
579{
580 if (n < numIndicesCounted)
581 {
582 return indices[numIndicesCounted - n - 1];
583 }
584 // We can't throw from this function because it is called by lambdas in the object model tables and we don't want exception tables for all of those
585 REPORT_INTERNAL_ERROR;
586 return 0;
587}
588
589int32_t ObjectExplorationContext::GetLastIndex() const noexcept
590{

Callers 6

GetXCoordinateMethod · 0.80
GetYCoordinateMethod · 0.80
Move.cppFile · 0.80
CoreKinematics.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected