Inverted_IfcPresentationLayerAssignment_AssignedItems_type::size_type Inverted_IfcPresentationLayerAssignment_AssignedItems_type::erase(const Step::RefPtr< IfcLayeredItem > &value) { IfcLayeredItem *inverse = const_cast< IfcLayeredItem * > (value.get()); if (inverse->getIfcRepresentation() != NULL) { IfcRepresentation *object = inverse->getIfcRepresentation(); object->getLayerAssignments().erase(mOwner); } else if (inverse->getIfcRepresentationItem() != NULL) { IfcRepresentationItem *object = inverse->getIfcRepresentationItem(); object->getLayerAssignments().erase(mOwner); } return Set_IfcLayeredItem_1_n::erase(value); }
void Inverted_IfcPresentationLayerAssignment_AssignedItems_type::insert(const Step::RefPtr< IfcLayeredItem > &value) throw(std::out_of_range) { IfcLayeredItem *inverse = const_cast< IfcLayeredItem * > (value.get()); Set_IfcLayeredItem_1_n::insert(value); if (inverse->getIfcRepresentation() != NULL) { IfcRepresentation *object = inverse->getIfcRepresentation(); object->getLayerAssignments().insert(mOwner); } else if (inverse->getIfcRepresentationItem() != NULL) { IfcRepresentationItem *object = inverse->getIfcRepresentationItem(); object->getLayerAssignments().insert(mOwner); } }
const IfcRepresentationContext *IfcRepresentation::getContextOfItems() const { IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this); return deConstObject->getContextOfItems(); }
const Inverse_Set_IfcProductRepresentation_0_1 &IfcRepresentation::getOfProductRepresentation() const { IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this); return deConstObject->getOfProductRepresentation(); }
const Inverse_Set_IfcPresentationLayerAssignment_0_n &IfcRepresentation::getLayerAssignments() const { IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this); return deConstObject->getLayerAssignments(); }
const Inverse_Set_IfcRepresentationMap_0_1 &IfcRepresentation::getRepresentationMap() const { IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this); return deConstObject->getRepresentationMap(); }
const Set_IfcRepresentationItem_1_n &IfcRepresentation::getItems() const { IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this); return deConstObject->getItems(); }
const IfcLabel IfcRepresentation::getRepresentationType() const { IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this); return deConstObject->getRepresentationType(); }