|
DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
This class describes a pointer to a LinkedObjectWrapper instance. It is a simple wrapper class which only adds specific behavior like always returning a const pointer to a LinkedObjectWrapper instance wrapping a const Object instance.
More...
#include <Object.h>
Public Types | |
| using | LinkedObjectWrapperType = LinkedObjectWrapper< std::add_const_t< ObjectT > > |
Type of the LinkedObjectWrapper instance this pointer points to. | |
| using | LinkedObjectWrapperPtrType = LinkedObjectWrapperType * |
Pointer type of LinkedObjectWrapperType. | |
Public Member Functions | |
| LinkedObjectWrapperPointer () noexcept | |
| Constructs an empty pointer. | |
| LinkedObjectWrapperPointer (LinkedObjectWrapperPtrType LinkedObjectWrapperPtr) noexcept | |
Constructs a pointer pointing to LinkedObjectWrapperPtr. | |
| LinkedObjectWrapperPtrType | get () const noexcept |
Always returns a const pointer so that Object instances using another linked Object instance are only allowed to call the linked object's const member functions. | |
| bool | operator== (const LinkedObjectWrapperPtrType rhs) const noexcept |
Checks whether LinkedObjectWrapperPtr equals another pointer to a LinkedObjectWrapper instance. | |
| bool | operator!= (const LinkedObjectWrapperPtrType rhs) const noexcept |
Checks whether LinkedObjectWrapperPtr does not equal another pointer to a LinkedObjectWrapper instance. | |
| bool | operator== (const LinkedObjectWrapperPointer &rhs) const noexcept |
Checks whether this LinkedObjectWrapperPointer instance equals another instance. | |
| bool | operator!= (const LinkedObjectWrapperPointer &rhs) const noexcept |
Checks whether this LinkedObjectWrapperPointer instance does not equal another instance. | |
| operator bool () const noexcept | |
Evaluates this LinkedObjectWrapperPointer instance to true if LinkedObjectWrapperPtr is not nullptr and to false otherwise. | |
| LinkedObjectWrapperPtrType | operator-> () const noexcept |
Always returns a const pointer so that Object instances using another linked Object instance are only allowed to call the linked object's const member functions. | |
| LinkedObjectWrapperType & | operator* () const noexcept |
Always returns a const reference so that Object instances using another linked Object instance are only allowed to call the linked object's const member functions. | |
Private Attributes | |
| LinkedObjectWrapperPtrType | LinkedObjectWrapperPtr |
LinkedObjectWrapper instance this pointer points to | |
This class describes a pointer to a LinkedObjectWrapper instance. It is a simple wrapper class which only adds specific behavior like always returning a const pointer to a LinkedObjectWrapper instance wrapping a const Object instance.
| ObjectT | Type of the managed Object. |
| using DynExp::LinkedObjectWrapperPointer< ObjectT >::LinkedObjectWrapperPtrType = LinkedObjectWrapperType* |
| using DynExp::LinkedObjectWrapperPointer< ObjectT >::LinkedObjectWrapperType = LinkedObjectWrapper<std::add_const_t<ObjectT> > |
Type of the LinkedObjectWrapper instance this pointer points to.
|
inlinenoexcept |
|
inlinenoexcept |
Constructs a pointer pointing to LinkedObjectWrapperPtr.
| LinkedObjectWrapperPtr | Pointer to a LinkedObjectWrapper instance to point to |
|
inlinenoexcept |
Always returns a const pointer so that Object instances using another linked Object instance are only allowed to call the linked object's const member functions.
|
inlineexplicitnoexcept |
Evaluates this LinkedObjectWrapperPointer instance to true if LinkedObjectWrapperPtr is not nullptr and to false otherwise.
|
inlinenoexcept |
Checks whether this LinkedObjectWrapperPointer instance does not equal another instance.
| rhs | Other LinkedObjectWrapperPointer instance |
|
inlinenoexcept |
Checks whether LinkedObjectWrapperPtr does not equal another pointer to a LinkedObjectWrapper instance.
| rhs | Pointer to a LinkedObjectWrapper instance |
|
inlinenoexcept |
Always returns a const reference so that Object instances using another linked Object instance are only allowed to call the linked object's const member functions.
|
inlinenoexcept |
Always returns a const pointer so that Object instances using another linked Object instance are only allowed to call the linked object's const member functions.
|
inlinenoexcept |
Checks whether this LinkedObjectWrapperPointer instance equals another instance.
| rhs | Other LinkedObjectWrapperPointer instance |
|
inlinenoexcept |
Checks whether LinkedObjectWrapperPtr equals another pointer to a LinkedObjectWrapper instance.
| rhs | Pointer to a LinkedObjectWrapper instance |
|
private |
LinkedObjectWrapper instance this pointer points to