|
using | scoped_connection = typename Item::scoped_connection |
|
using | item_t = Item |
|
template<typename Item>
template<typename Owner >
Assumption: owner will always outlive the connection.
Construction: item is constructed, and connected to supplied owner. Copy construction: disabled. Move construction: item & connection are moved, owner ref is unchanged. Copy assignment: disabled. Move assignment: item & connection are moved, owner ref is unchanged. Destruction: item ref count is decreased, connection to owner is severed.
Can't modify the shared ptr itself, but modifications to pointed-to object is fine. If the pointed-to object is assigned-to, it will retain its listeners from before the assignment, so this object's invariants will not be violated.
The documentation for this class was generated from the following file:
- src/combined/include/combined/model/member.h