MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getPath

Method getPath

src/Core/System/Path.cpp:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 Path Path::getPath(const std::size_t index) const
47 {
48 if (index < m_mounts.size())
49 return Path(m_mounts[index].basePath).add(m_path);
50 std::vector<std::string> mountNames;
51 mountNames.reserve(m_mounts.size());
52 for (const auto& mount : m_mounts)
53 {
54 mountNames.push_back(mount.basePath);
55 }
56 throw Exceptions::MountablePathIndexOverflow(
57 index, m_mounts.size(), mountNames, EXC_INFO);
58 }
59
60 std::string Path::find(PathType pathType) const
61 {

Callers

nothing calls this directly

Calls 6

PathClass · 0.85
sizeMethod · 0.45
addMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected