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

Method Contains

src/network/network.cpp:180–183  ·  view source on GitHub ↗

* Check whether the given key is contains in these authorized keys. * @param key The key to look for. * @return \c true when the key has been found, otherwise \c false. */

Source from the content-addressed store, hash-verified

178 * @return \c true when the key has been found, otherwise \c false.
179 */
180bool NetworkAuthorizedKeys::Contains(std::string_view key) const
181{
182 return FindKey(this, key) != this->end();
183}
184
185/**
186 * Add the given key to the authorized keys, when it is not already contained.

Callers 13

IsAllowedMethod · 0.45
CanJoinCompanyMethod · 0.45
GetButtonMethod · 0.45
GetTooltipMethod · 0.45
RebuildListMethod · 0.45
Receive_CLIENT_MOVEMethod · 0.45
DrawMouseCursorMethod · 0.45
PopulateCursorCacheMethod · 0.45
GetLocalIndexMethod · 0.45
GetLabelMethod · 0.45
ForceUpdateMethod · 0.45

Calls 2

FindKeyFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected