WRApplication
External kratos "application" for multiscale time integration.
|
An optional, modeling a pointer. More...
Public Types | |
using | value_type = TElement & |
Public Member Functions | |
OptionalRef () noexcept | |
Construct an invalid (uninitialized) optional. More... | |
OptionalRef (TElement &rElement) noexcept | |
Construct an optional reference to the provided instance. More... | |
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. More... | |
bool | has_value () const noexcept |
Check whether the optional is valid. More... | |
operator bool () const noexcept | |
Check whether the optional is valid. More... | |
TElement & | value () const |
Access the stored reference. More... | |
TElement & | operator* () const noexcept |
Access the stored reference. More... | |
void | reset () noexcept |
Clear the optional. More... | |
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 |