RStudio Launcher Plugin SDK
1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
|
Container class which represents a value that may or may not be set. More...
#include <Optional.hpp>
Public Member Functions | |
Optional ()=default | |
Default constructor. | |
Optional (T *in_value) | |
Constructor. More... | |
Optional (const T &in_value) | |
Constructor. More... | |
Optional (const Optional &in_other) | |
Copy constructor. More... | |
Optional (Optional &&in_other) noexcept | |
Move constructor. More... | |
operator bool () const | |
Boolean operator. More... | |
bool | operator! () const |
Not boolean operator. More... | |
Optional & | operator= (const Optional &in_other) |
Assignment operator. More... | |
Optional & | operator= (Optional &&in_other) noexcept |
Assignment operator. More... | |
Optional & | operator= (T *in_value) |
Assignment operator. More... | |
Optional & | operator= (const T &in_value) |
Assginment operator. More... | |
const T & | getValueOr (const T &in_default) const |
Gets the value of this optional, or the provided default value if this optional has no value. More... | |
T & | getValueOr (T &in_default) |
Gets the value of this optional, or the provided default value if this optional has no value. More... | |
bool | hasValue () const |
Checks whether this optional has a value. More... | |
Container class which represents a value that may or may not be set.
T | The type of the optional value. |
|
inlineexplicit |
Constructor.
in_value | The value to set on this optional. The optional takes ownership of this value. |
|
inlineexplicit |
Constructor.
in_value | The value to set on this optional. |
|
inline |
Copy constructor.
in_other | The optional value to copy. |
|
inlinenoexcept |
Move constructor.
in_other | The optional value to move into this optional value. |
|
inline |
Gets the value of this optional, or the provided default value if this optional has no value.
in_default | The default value to use if this optional has no value. |
|
inline |
Gets the value of this optional, or the provided default value if this optional has no value.
in_default | The default value to use if this optional has no value. |
|
inline |
Checks whether this optional has a value.
|
inlineexplicit |
Boolean operator.
|
inline |
Not boolean operator.
|
inline |
Assignment operator.
in_other | The optional value to copy to this optional. |
|
inline |
Assginment operator.
in_value | The value to assign to this optional. |
|
inlinenoexcept |
Assignment operator.
in_other | The optional value to copy to this optional. |
|
inline |
Assignment operator.
in_value | The value to assign to this optional. The optional will take ownership of the value. |