|
| | SmartMediumRef () |
| | Creates an empty smart medium reference.
|
| | SmartMediumRef (const MediumRef &mediumRef) |
| | Creates a new smart medium reference by a given medium reference.
|
| | SmartMediumRef (Medium *object) |
| | Creates a new SmartMediumRef by a given object.
|
| template<typename T2> |
| | SmartMediumRef (const SmartMediumRef< T2 > &reference) |
| | Copies a smart medium reference.
|
| SmartMediumRef & | operator= (const MediumRef &mediumRef) |
| | Assigns a smart medium reference.
|
| | SmartObjectRef ()=default |
| | Creates a new SmartObjectRef with no internal object.
|
| SmartObjectRef< T, Medium > & | operator= (const SmartObjectRef< T, Medium > &smartObjectRef) |
| | Assign operator.
|
| void | release () |
| | Releases the internal object, if any.
|
| T * | pointer () const |
| | Returns a pointer to the objects that is encapsulated by this wrapper.
|
| T * | operator-> () const |
| | Returns a point to the internal object if existing.
|
| T & | operator* () const |
| | Returns a reference to the internal object if existing.
|
| | ObjectRef ()=default |
| | Creates an empty ObjectRef object.
|
| | ObjectRef (const ObjectRef< Medium > &objectRef) |
| | Copy constructor.
|
| | ObjectRef (ObjectRef< Medium > &&object) noexcept |
| | Move constructor.
|
| | ObjectRef (Medium *object) |
| | Creates a new ObjectRef holding a given object.
|
| | ObjectRef (Medium *object, const ReleaseCallback &releaseCallback) |
| | Creates a new ObjectRef holding and managing a given object.
|
| | ~ObjectRef () |
| | Destructs an object reference object and releases the internal object if possible.
|
| T2 & | force () const |
| | Returns a reference to the internal object forcing to a specified type.
|
| Medium * | operator-> () const |
| | Returns a point to the internal object if existing.
|
| Medium & | operator* () const |
| | Returns a reference to the internal object if existing.
|
| bool | isUnique () const |
| | Returns whether there is no other object reference but this one.
|
| bool | isNull () const |
| | Returns whether this object reference holds no internal object.
|
| void | release () |
| | Releases the internal object, if any.
|
| Medium * | pointer () const |
| | Returns a pointer to the objects that is encapsulated by this wrapper.
|
| ObjectRef< Medium > & | operator= (const ObjectRef< Medium > &objectRef) |
| | Assign operator.
|
| ObjectRef< Medium > & | operator= (ObjectRef< Medium > &&right) noexcept |
| | Move operator.
|
| bool | operator== (const ObjectRef< Medium > &objectRef) const |
| | Returns whether two object references are holds the same internal object.
|
| bool | operator!= (const ObjectRef< Medium > &objectRef) const |
| | Returns whether two object references are not equal.
|
| bool | operator< (const ObjectRef< Medium > &objectRef) const |
| | Returns whether the left object is less than the right one.
|
| | operator bool () const |
| | Returns whether this object reference holds an internal object.
|
template<typename T>
class Ocean::Media::SmartMediumRef< T >
This class implements a smart medium reference.
- Template Parameters
-
| T | Type of the derived object that has to be encapsulated by the smart reference object |