Skip to content

What is the difference between aggregate_of and aggregate_of_instance? #3737

Closed Answered by aothms
RickBrice asked this question in Q&A
Discussion options

You must be logged in to vote

I think you haven't pulled changes since Jun 21, because I think as of c72f960 #2805 they both use aggregate_of

aggregate_of< ::Ifc4x3_add1::IfcSpatialReferenceSelect >::ptr RelatedElements() const;

aggregate_of< ::Ifc4x3_add1::IfcObjectDefinition >::ptr RelatedObjects() const;

For history on why this difference existed, maybe see #1714 Proper select implementation

basically adaptors for std::vector.

Yes, the plan originally was to embed more of the semantics of express in these aggregates, enabling them to behave as when needed sets/bags. But this was never prioritized because honestly in IFC the distinction between these types is often rather arbitrary. Exemplified by the fact for e…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RickBrice
Comment options

RickBrice Sep 12, 2023
Collaborator Author

@aothms
Comment options

Answer selected by RickBrice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants