MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getPropertyComponents

Method getPropertyComponents

src/App/ObjectIdentifier.cpp:207–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207std::vector<ObjectIdentifier::Component> ObjectIdentifier::getPropertyComponents() const
208{
209 if (components.size() <= 1 || documentObjectName.getString().empty()) {
210 return components;
211 }
212 ResolveResults result(*this);
213 if (result.propertyIndex == 0) {
214 return components;
215 }
216 std::vector<ObjectIdentifier::Component> res;
217 res.insert(res.end(), components.begin() + result.propertyIndex, components.end());
218 return res;
219}
220
221bool ObjectIdentifier::operator==(const ObjectIdentifier& other) const
222{

Callers

nothing calls this directly

Calls 6

sizeMethod · 0.45
emptyMethod · 0.45
getStringMethod · 0.45
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected