Skip to main content

Module resolve

Module resolve 

Source
Expand description

Resolve a raw reference into a type-checked resource view.

Curve, surface and solid views keep their raw *_ref getters, because a caller walking the graph often wants the id alone. The resolving accessors beside them all need the same two checks – the reference is not dangling, and it names an entity of the declared type – and doing those checks in one place keeps the errors identical everywhere:

Only entity types are checked here. A view’s own slot errors (a 1-element point, a zero direction) still surface when the caller reads it.

An attribute typed by an abstract supertype (IfcSurface, IfcBoundedCurve) has no resolving accessor: it stays a reference, because choosing among the concrete subtypes is dispatch, and dispatch belongs to lower. IfcProfileDef has no view here either; input::profile owns profile reading.

Functions§

axis1_placement
Resolve a reference that must be an IfcAxis1Placement.
axis2_placement
Resolve a reference typed as the IfcAxis2Placement SELECT.
axis2_placement_3d
Resolve a reference that must be an IfcAxis2Placement3D.
cartesian_point
Resolve a reference that must be an IfcCartesianPoint.
cartesian_point_list
Resolve a reference typed as the abstract IfcCartesianPointList.
cartesian_point_list_3d
Resolve a reference that must be an IfcCartesianPointList3D.
cartesian_points
Resolve every reference of a LIST OF IfcCartesianPoint, in order.
direction
Resolve a reference that must be an IfcDirection.