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

Method count

plugins/channel-safely/channel-groups.cpp:331–333  ·  view source on GitHub ↗

returns a count of 0 or 1 depending on whether map_pos is mapped to a group

Source from the content-addressed store, hash-verified

329
330// returns a count of 0 or 1 depending on whether map_pos is mapped to a group
331size_t ChannelGroups::count(const df::coord &map_pos) const {
332 return groups_map.count(map_pos);
333}
334
335// prints debug info about the groups stored, and their members
336void ChannelGroups::debug_groups() {

Callers 15

manage_groupMethod · 0.45
manage_oneMethod · 0.45
JobCompletedEventFunction · 0.45
NewReportEventFunction · 0.45
OnUpdateFunction · 0.45
likelyFunction · 0.45
addMethod · 0.45
scanMethod · 0.45
removeMethod · 0.45
tilesieveFunction · 0.45
dispatch_classMethod · 0.45
check_unknown_pointerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected