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

Method GetValue

library/cpp/yconf/conf.cpp:683–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681}
682
683bool TYandexConfig::Directives::GetValue(TStringBuf key, TString& value) const {
684 const_iterator I = find(key);
685
686 if (I == end()) {
687 if (strict) {
688 ythrow yexception() << "key " << key << " not declared";
689 }
690
691 return false;
692 }
693
694 if ((*I).second == nullptr) {
695 return false;
696 }
697
698 value = (*I).second;
699
700 return true;
701}
702
703bool TYandexConfig::Directives::GetNonEmptyValue(TStringBuf key, TString& value) const {
704 TString tempValue;

Callers 12

GetPendingDataSizeMethod · 0.45
GetAllPendingDataSizeMethod · 0.45
GetDebugInfoLockedMethod · 0.45
FixTimeoutForSanitizerFunction · 0.45
OnConnectMethod · 0.45
TMultiClientMethod · 0.45
ScheduleRequestMethod · 0.45
SetNearDeadlineMethod · 0.45
SetMethod · 0.45
OnSendMethod · 0.45
OnRequestAckMethod · 0.45
NextDeadlineMethod · 0.45

Calls 4

findFunction · 0.50
endFunction · 0.50
GetValueFunction · 0.50
IsTrueFunction · 0.50

Tested by

no test coverage detected