Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
231
int Enumeration::getInt() const
232
{
233
if (!isValid() || _index < 0 || _index >= countItems()) {
234
return -1;
235
}
236
237
return _index;
238
}
239
240
std::vector<std::string> Enumeration::getEnumVector() const
241
{
Callers
2
getValue
Method · 0.45
Save
Method · 0.45
Calls
1
isValid
Function · 0.70
Tested by
no test coverage detected