MCPcopy Create free account
hub / github.com/catboost/catboost / GetOption

Function GetOption

library/cpp/text_processing/tokenizer/options.cpp:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34template <typename TType>
35static void GetOption(const NJson::TJsonValue& optionsJson, const TString& name, TType* result) {
36 if (optionsJson.Has(name)) {
37 *result = FromString<TType>(optionsJson[name].GetString());
38 }
39}
40
41template <typename TContainerType>
42static void GetContainerOption(const NJson::TJsonValue& optionsJson, const TString& name, TContainerType* result) {

Callers 2

MutuallyExclusiveMethod · 0.50

Calls 2

HasMethod · 0.45
GetStringMethod · 0.45

Tested by

no test coverage detected