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);
    }
}
Пример #3
0
const IfcRepresentationContext *IfcRepresentation::getContextOfItems() const {
    IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this);
    return deConstObject->getContextOfItems();
}
Пример #4
0
const Inverse_Set_IfcProductRepresentation_0_1 &IfcRepresentation::getOfProductRepresentation() const {
    IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this);
    return deConstObject->getOfProductRepresentation();
}
Пример #5
0
const Inverse_Set_IfcPresentationLayerAssignment_0_n &IfcRepresentation::getLayerAssignments() const {
    IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this);
    return deConstObject->getLayerAssignments();
}
Пример #6
0
const Inverse_Set_IfcRepresentationMap_0_1 &IfcRepresentation::getRepresentationMap() const {
    IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this);
    return deConstObject->getRepresentationMap();
}
Пример #7
0
const Set_IfcRepresentationItem_1_n &IfcRepresentation::getItems() const {
    IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this);
    return deConstObject->getItems();
}
Пример #8
0
const IfcLabel IfcRepresentation::getRepresentationType() const {
    IfcRepresentation * deConstObject = const_cast< IfcRepresentation * > (this);
    return deConstObject->getRepresentationType();
}