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

Function getElement

base/poco/JSON/include/Poco/JSON/Array.h:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114 template <typename T>
115 T getElement(unsigned int index) const
116 /// Retrieves an element and tries to convert it to the
117 /// template type. The convert<T> method of
118 /// Dynamic is called which can also throw
119 /// exceptions for invalid values.
120 /// Note: This will not work for an array or an object.
121 {
122 Dynamic::Var value = get(index);
123 return value.convert<T>();
124 }
125
126 SharedPtr<Object> getObject(unsigned int index) const;
127 /// Retrieves an object. When the element is not

Callers 7

attributeMethod · 0.85
attributePresentMethod · 0.85
nextImplMethod · 0.85
XMLStreamParser.hFile · 0.85
attributeMethod · 0.85
SimdJSONParserClass · 0.85

Calls 1

getFunction · 0.50

Tested by

no test coverage detected