MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getInt

Method getInt

src/App/Enumeration.cpp:231–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231int Enumeration::getInt() const
232{
233 if (!isValid() || _index < 0 || _index >= countItems()) {
234 return -1;
235 }
236
237 return _index;
238}
239
240std::vector<std::string> Enumeration::getEnumVector() const
241{

Callers 2

getValueMethod · 0.45
SaveMethod · 0.45

Calls 1

isValidFunction · 0.70

Tested by

no test coverage detected