MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getNames

Method getNames

base/poco/JSON/src/Object.cpp:149–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147
148
149void Object::getNames(NameList& names) const
150{
151 names.clear();
152 if (_preserveInsOrder)
153 {
154 for(KeyList::const_iterator it = _keys.begin(); it != _keys.end(); ++it)
155 {
156 names.push_back((*it)->first);
157 }
158 }
159 else
160 {
161 for(ValueMap::const_iterator it = _values.begin(); it != _values.end(); ++it)
162 {
163 names.push_back(it->first);
164 }
165 }
166}
167
168
169Object::NameList Object::getNames() const

Callers 1

enumerateMethod · 0.45

Calls 4

clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected