MCPcopy Create free account
hub / github.com/DFHack/dfhack / ival

Method ival

library/modules/Persistence.cpp:138–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 return data->int_values.at(i);
137}
138int PersistentDataItem::ival(int i) const
139{
140 CHECK_INVALID_ARGUMENT(isValid());
141 CHECK_INVALID_ARGUMENT(i >= 0 && i < (int)NumInts);
142 return data->int_values.at(i);
143}
144
145const std::string & PersistentDataItem::get_str() {
146 static const std::string empty;

Callers 15

saveMethod · 0.80
load_stateMethod · 0.80
save_stateMethod · 0.80
goalCountMethod · 0.80
setGoalCountMethod · 0.80
goalGapMethod · 0.80
setGoalGapMethod · 0.80
goalByCountMethod · 0.80
setGoalByCountMethod · 0.80
initMethod · 0.80
history_valueMethod · 0.80

Calls 1

isValidFunction · 0.50

Tested by

no test coverage detected