MCPcopy Create free account
hub / github.com/comaps/comaps / FindWorld

Function FindWorld

libs/indexer/utils.cpp:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace std;
8
9MwmSet::MwmHandle FindWorld(DataSource const & dataSource, vector<shared_ptr<MwmInfo>> const & infos)
10{
11 MwmSet::MwmHandle handle;
12 for (auto const & info : infos)
13 {
14 if (info->GetType() == MwmInfo::WORLD)
15 {
16 handle = dataSource.GetMwmHandleById(MwmSet::MwmId(info));
17 break;
18 }
19 }
20 return handle;
21}
22
23MwmSet::MwmHandle FindWorld(DataSource const & dataSource)
24{

Callers 6

LoadMethod · 0.85
GetWorldContextFunction · 0.85
GoImplMethod · 0.85
LoadMethod · 0.85
UNIT_TESTFunction · 0.85

Calls 4

MwmIdClass · 0.85
GetMwmsInfoMethod · 0.80
GetTypeMethod · 0.45
GetMwmHandleByIdMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68