MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Retrieve

Method Retrieve

src/station_gui.cpp:1156–1164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156CargoDataEntry *CargoDataEntry::Retrieve(CargoDataSet::iterator i) const
1157{
1158 if (i == this->children->end()) {
1159 return nullptr;
1160 } else {
1161 assert(this->children->value_comp().GetSortType() != CargoSortType::Count);
1162 return i->get();
1163 }
1164}
1165
1166bool CargoSorter::operator()(const CargoDataEntry &cd1, const CargoDataEntry &cd2) const
1167{

Callers 6

RetrieveMethod · 0.95
ShowCargoMethod · 0.45
BuildFlowListMethod · 0.45
BuildCargoListMethod · 0.45
SetDisplayedRowMethod · 0.45

Calls 3

GetSortTypeMethod · 0.80
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected