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

Method unique

source/core/StarJson.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77bool Json::unique() const {
78 if (m_data.is<StringConstPtr>())
79 return m_data.get<StringConstPtr>().unique();
80 else if (m_data.is<JsonArrayConstPtr>())
81 return m_data.get<JsonArrayConstPtr>().unique();
82 else if (m_data.is<JsonObjectConstPtr>())
83 return m_data.get<JsonObjectConstPtr>().unique();
84 else
85 return true;
86}
87
88Json Json::ofType(Type t) {
89 switch (t) {

Callers 5

cleanupMethod · 0.45
cleanupMethod · 0.45
loadOperationsMethod · 0.45
shouldPersistMethod · 0.45
finishFrameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected