ifcparse: keep file::all_referencing_instances out of the Python wrapper

SWIG wraps every public method of file, so the std::function-taking
helper leaked into the wrapper and the stub validation tripped over it.
Only the compiled %extend helpers call it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HNrXDmR88wKPCYwGE21SyH
This commit is contained in:
Dion Moult
2026-09-17 15:51:31 +10:00
parent 17092e97cd
commit f2230ed975
+4 -1
View File
@@ -350,9 +350,12 @@ public:
/// Returns all entities in the file that reference the id
std::vector<express::base> 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<bool(uint32_t)>& pred);
#endif
/// Returns the entity with the specified id
express::base instance_by_id(int instance_id);