diff --git a/src/ifcparse/file.h b/src/ifcparse/file.h index feed44a775..eb87d28315 100644 --- a/src/ifcparse/file.h +++ b/src/ifcparse/file.h @@ -350,9 +350,12 @@ public: /// Returns all entities in the file that reference the id std::vector instances_by_reference(int reference_id); +#ifndef SWIG /// Returns whether pred accepts the id of every instance that references - /// instance_id, stopping at the first one it rejects. + /// instance_id, stopping at the first one it rejects. Used by the Python + /// wrapper's helpers; a std::function can't be exposed to Python itself. bool all_referencing_instances(int instance_id, const std::function& pred); +#endif /// Returns the entity with the specified id express::base instance_by_id(int instance_id);