|
WRApplication
External kratos "application" for multiscale time integration.
|
An optional, modeling a pointer. More...
#include <OptionalRef.hpp>
Public Types | |
| using | value_type = TElement & |
Public Member Functions | |
| OptionalRef () noexcept | |
| Construct an invalid (uninitialized) optional. | |
| OptionalRef (TElement &rElement) noexcept | |
| Construct an optional reference to the provided instance. | |
| OptionalRef (OptionalRef &&rRhs) noexcept=default | |
| OptionalRef (const OptionalRef &rRhs) noexcept=default | |
| OptionalRef & | operator= (OptionalRef &&rRhs) noexcept=default |
| OptionalRef & | operator= (const OptionalRef &rRhs) noexcept=default |
| OptionalRef & | operator= (TElement &rElement) noexcept |
| Assign the provided instance to the optional. | |
| bool | has_value () const noexcept |
| Check whether the optional is valid. | |
| operator bool () const noexcept | |
| Check whether the optional is valid. | |
| TElement & | value () const |
| Access the stored reference. | |
| TElement & | operator* () const noexcept |
| Access the stored reference. | |
| void | reset () noexcept |
| Clear the optional. | |
An optional, modeling a pointer.
OptionalRef stores a pointer to the instance it was assigned and stores the value indicator in the least significant bit of the pointer. As a result, the memory alignment of OptionalRef is identical to that of the stored pointer.
| using value_type = TElement& |
|
inlinenoexcept |
Construct an invalid (uninitialized) optional.
|
inlineexplicitnoexcept |
Construct an optional reference to the provided instance.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Check whether the optional is valid.
|
inlineexplicitnoexcept |
Check whether the optional is valid.
|
inlinenoexcept |
Access the stored reference.
| if | the optional is uninitialized. |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Assign the provided instance to the optional.
|
inlinenoexcept |
Clear the optional.
|
inline |
Access the stored reference.
| if | the optional is uninitialized. |
| PointerInteger integer |
| TElement* pointer |