MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / operator==

Method operator==

framework/src/bundle/BundleResource.cpp:139–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 bool
140 BundleResource::operator==(BundleResource const& resource) const
141 {
142 if (!this->IsValid())
143 {
144 return !resource.IsValid();
145 }
146
147 if (!resource.IsValid())
148 {
149 return false;
150 }
151
152 return d->archive->GetResourceContainer() == resource.d->archive->GetResourceContainer()
153 && d->archive->GetResourcePrefix() == resource.d->archive->GetResourcePrefix()
154 && this->GetResourcePath() == resource.GetResourcePath();
155 }
156
157 bool
158 BundleResource::operator!=(BundleResource const& resource) const

Callers

nothing calls this directly

Calls 4

IsValidMethod · 0.95
GetResourcePathMethod · 0.95
GetResourceContainerMethod · 0.80
GetResourcePrefixMethod · 0.80

Tested by

no test coverage detected