MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / objectPtr

Method objectPtr

source/core/StarJson.cpp:250–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250JsonObjectConstPtr Json::objectPtr() const {
251 if (type() != Type::Object)
252 throw JsonException::format("Improper conversion to JsonObject from {}", typeName());
253 return m_data.get<JsonObjectConstPtr>();
254}
255
256Json::IteratorWrapper<JsonArray> Json::iterateArray() const {
257 return IteratorWrapper<JsonArray>{arrayPtr()};

Callers 5

configurationMethod · 0.80
toMethod · 0.80
jsonContainerToTableMethod · 0.80
toJsonStreamMethod · 0.80

Calls 2

formatFunction · 0.70
typeFunction · 0.50

Tested by

no test coverage detected