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

Method SetValue

library/cpp/json/json_reader.h:130–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129 template <class T>
130 bool SetValue(const T& value) {
131 switch (CurrentState) {
132 case START:
133 Value.SetValue(value);
134 break;
135 case AFTER_MAP_KEY:
136 ValuesStack.back()->InsertValue(Key, value);
137 CurrentState = IN_MAP;
138 break;
139 case IN_ARRAY:
140 ValuesStack.back()->AppendValue(value);
141 break;
142 case IN_MAP:
143 case FINISH:
144 return false;
145 default:
146 ythrow yexception() << "TParserCallbacks::SetValue invalid enum";
147 }
148 return true;
149 }
150
151 bool OpenComplexValue(EJsonValueType type);
152 bool CloseComplexValue();

Callers

nothing calls this directly

Calls 2

AppendValueMethod · 0.80
backMethod · 0.45

Tested by

no test coverage detected