libcrn
3.9.5
A document image processing library
|
A class to store an optional value. More...
#include <CRNOption.h>
Public Member Functions | |
constexpr | Option () noexcept |
Default constructor. More... | |
Option (const T &value) | |
Constructor from value. More... | |
Option (const Option &o) | |
Copy constructor. More... | |
Option (Option &&o) noexcept | |
Option & | operator= (const Option &o) |
Copy operator. More... | |
Option & | operator= (Option &&o) noexcept |
~Option () | |
Destructor. More... | |
operator bool () const noexcept | |
Is the option set? More... | |
T & | Get () noexcept |
Value access (undefined behaviour if the value is not set) More... | |
const T & | Get () const noexcept |
Value access (undefined behaviour if the value is not set) More... | |
T & | operator* () noexcept |
Value access (undefined behaviour if the value is not set) More... | |
const T & | operator* () const noexcept |
Value access (undefined behaviour if the value is not set) More... | |
T * | operator-> () noexcept |
Method access (undefined behaviour if the value is not set) More... | |
const T * | operator-> () const noexcept |
Method access (undefined behaviour if the value is not set) More... | |
A class to store an optional value.
A class to store an optional value
Definition at line 33 of file CRNOption.h.
|
inlinenoexcept |
Default constructor.
Definition at line 37 of file CRNOption.h.
|
inline |
Constructor from value.
Definition at line 39 of file CRNOption.h.
|
inline |
Copy constructor.
Definition at line 41 of file CRNOption.h.
|
inlinenoexcept |
Definition at line 46 of file CRNOption.h.
|
inline |
Destructor.
Definition at line 61 of file CRNOption.h.
|
inlinenoexcept |
Value access (undefined behaviour if the value is not set)
Definition at line 65 of file CRNOption.h.
|
inlinenoexcept |
Value access (undefined behaviour if the value is not set)
Definition at line 67 of file CRNOption.h.
|
inlinenoexcept |
Is the option set?
Definition at line 63 of file CRNOption.h.
|
inlinenoexcept |
Value access (undefined behaviour if the value is not set)
Definition at line 69 of file CRNOption.h.
|
inlinenoexcept |
Value access (undefined behaviour if the value is not set)
Definition at line 71 of file CRNOption.h.
|
inlinenoexcept |
Method access (undefined behaviour if the value is not set)
Definition at line 73 of file CRNOption.h.
|
inlinenoexcept |
Method access (undefined behaviour if the value is not set)
Definition at line 75 of file CRNOption.h.
|
inline |
Copy operator.
Definition at line 48 of file CRNOption.h.
|
inlinenoexcept |
Definition at line 59 of file CRNOption.h.