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

Method compare

source/core/StarDirectives.cpp:309–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309bool DirectivesGroup::compare(DirectivesGroup const& other) const {
310 if (m_count != other.m_count)
311 return false;
312
313 if (empty())
314 return true;
315
316 return hash() == other.hash();
317}
318
319void DirectivesGroup::append(Directives const& directives) {
320 m_directives.emplace_back(directives);

Callers 3

StarDirectives.cppFile · 0.45
operator==Function · 0.45
operator!=Function · 0.45

Calls 2

hashClass · 0.85
hashMethod · 0.45

Tested by

no test coverage detected