mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 23:11:00 +00:00
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:
+4
-1
@@ -350,9 +350,12 @@ public:
|
|||||||
/// Returns all entities in the file that reference the id
|
/// Returns all entities in the file that reference the id
|
||||||
std::vector<express::base> instances_by_reference(int reference_id);
|
std::vector<express::base> instances_by_reference(int reference_id);
|
||||||
|
|
||||||
|
#ifndef SWIG
|
||||||
/// Returns whether pred accepts the id of every instance that references
|
/// 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);
|
bool all_referencing_instances(int instance_id, const std::function<bool(uint32_t)>& pred);
|
||||||
|
#endif
|
||||||
|
|
||||||
/// Returns the entity with the specified id
|
/// Returns the entity with the specified id
|
||||||
express::base instance_by_id(int instance_id);
|
express::base instance_by_id(int instance_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user