Reference to the MeshModelSource that is aware of the lifespan of the MeshModelSource and can provide a "lock" on the source for the duration of the scope.
#include <Mesh/DataStructures/meshmodelsource.h>
◆ LockableRef() [1/4]
Default constructor for a LockableRef. The ref is invalid when constructed using this constructor,
◆ LockableRef() [2/4]
◆ LockableRef() [3/4]
◆ LockableRef() [4/4]
Move constructor for a lockable ref. Copying is disabled, but moving is not.
◆ ~LockableRef()
◆ lock() [1/2]
- Returns
- Pointer to the MeshModelSource referenced by this LockableRef object. If the Ref object is invalid, then nullptr will be returned.
Locks the MeshModelSource referred to by this Ref and returns a pointer to it.
◆ lock() [2/2]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ ownsLock()
◆ scopedLock() [1/2]
◆ scopedLock() [2/2]
- Returns
- A LockedPtr object that maintains a lock on the MeshModelSource as long as it is alive. As soon as the last LockedPtr object goes out of scope, the MeshModelSource is unlocked again. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Note
- LockedPtr objects should be destroyed before this object is destroyed.
◆ sourceDeleted()
bool sourceDeleted |
( |
| ) |
const |
- Returns
- true if the MeshModelSource referenced by this object is deleted or in the process of being deleted.
◆ unlock() [1/2]
◆ unlock() [2/2]