sempr-tk / sempr

SEMPR - Semantic Environment Mapping, Processing and Reasoning
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

public Entity::registerChildEntity #42

Closed niniemann closed 6 years ago

niniemann commented 6 years ago

The method to register an entity as a child of another entity has previously been protected, and only used to register children when an entity created them in its c'tor. But I think it would be beneficial to allow the user to attach arbitrary entities to another, to transfer ownership.

I'm not 100% sure if this is totally safe. I added a simple test case which works fine, so I guess it's okay for now... :)

niniemann commented 6 years ago

Since this is a rather minor change I'll just merge this now. :)