![]() |
LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
|
#include "either.h"
Public Types | |
| using | L_t = L |
| using | R_t = R |
Public Member Functions | |
| Either ()=delete | |
| Either (const L &l) | |
| Either (R &&r) | |
| Either (const R &r) | |
| Either (const Either &)=default | |
| Either (Either &&)=default | |
| Either & | operator= (const Either &)=default |
| Either & | operator= (Either &&)=default |
| bool | IsLeft () const |
| bool | IsRight () const |
| const L & | GetLeft () const |
| const R & | GetRight () const |
| std::optional< L > | MaybeLeft () const |
| std::optional< R > | MaybeRight () const |
| std::variant< L, R > | AsVariant () const & |
| std::variant< L, R > | AsVariant () && |
| template<typename F > | |
| R | ToRight (F &&f) const |
Static Public Member Functions | |
| template<typename RNew > | |
| static Either< L, RNew > | FromMaybe (const std::optional< RNew > &maybeRight, const L &left) |
| static Either | Left (const L &l) |
| static Either | Right (R &&r) |
| static Either | Right (const R &r) |
| template<typename... Vars> | |
| static Either | LeftLift (const std::variant< Vars... > &var) |
| template<typename... Vars> | |
| static Either | LeftLift (const Either< std::variant< Vars... >, R > &either) |
| template<typename LPrime , typename = std::enable_if_t<std::is_convertible_v<LPrime, L>>> | |
| static Either | LeftLift (const Either< LPrime, R > &either) |
| template<typename RNew > | |
| static std::enable_if_t<!std::is_convertible< RNew, R >::value, Either< L, RNew > > | Right (const RNew &r) |
| static auto | EmbeddingLeft () |
Friends | |
| bool | operator== (const Either &e1, const Either &e2) |
| bool | operator!= (const Either &e1, const Either &e2) |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 162 of file either.h.
References LC::Util::Filter(), LC::Util::Either< L, R >::Left(), and LC::Util::Either< L, R >::Right().
Here is the call graph for this function:
|
inlinestatic |
Definition at line 112 of file either.h.
References LC::Util::Filter(), LC::Util::Either< L, R >::Left(), and LC::Util::Either< L, R >::Right().
Here is the call graph for this function:Definition at line 65 of file either.h.
References LC::Util::Either< L, R >::IsLeft().
Referenced by LC::Util::Either< L, R >::MaybeLeft(), and LC::Util::Either< L, R >::ToRight().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 72 of file either.h.
References LC::Util::Either< L, R >::IsRight().
Referenced by LC::Util::Either< L, R >::MaybeRight(), and LC::Util::Either< L, R >::ToRight().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 55 of file either.h.
Referenced by LC::Util::Either< L, R >::GetLeft(), and LC::Util::Either< L, R >::MaybeLeft().
Here is the caller graph for this function:Definition at line 60 of file either.h.
Referenced by LC::Util::Either< L, R >::GetRight(), LC::Util::Either< L, R >::LeftLift(), LC::Util::Either< L, R >::LeftLift(), LC::Util::Either< L, R >::MaybeRight(), and LC::Util::Either< L, R >::ToRight().
Here is the caller graph for this function:Definition at line 119 of file either.h.
References LC::Util::Filter().
Referenced by LC::Util::DownloadAsTemporary(), LC::Util::Either< L, R >::EmbeddingLeft(), LC::Util::Either< L, R >::FromMaybe(), LC::Util::Either< L, R >::LeftLift(), LC::Util::SerializeJsonToFile(), and LC::Util::ToJson().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 149 of file either.h.
References LC::Util::Filter(), LC::Util::Either< L, R >::IsRight(), LC::Util::Either< L, R >::Left(), and LC::Util::Either< L, R >::Right().
Here is the call graph for this function:
|
inlinestatic |
Definition at line 141 of file either.h.
References LC::Util::Filter(), LC::Util::Either< L, R >::IsRight(), LC::Util::Either< L, R >::LeftLift(), and LC::Util::Either< L, R >::Right().
Here is the call graph for this function:
|
inlinestatic |
Definition at line 135 of file either.h.
References LC::Util::Filter().
Referenced by LC::Util::Either< L, R >::LeftLift().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 79 of file either.h.
References LC::Util::Either< L, R >::GetLeft(), and LC::Util::Either< L, R >::IsLeft().
Here is the call graph for this function:
|
inline |
Definition at line 86 of file either.h.
References LC::Util::Either< L, R >::GetRight(), and LC::Util::Either< L, R >::IsRight().
Here is the call graph for this function:Definition at line 129 of file either.h.
References LC::Util::Filter().
Here is the call graph for this function:
|
inlinestatic |
Definition at line 157 of file either.h.
References LC::Util::Filter(), and LC::Util::Either< L, R >::Right().
Here is the call graph for this function:Definition at line 124 of file either.h.
References LC::Util::Filter().
Referenced by LC::Util::DownloadAsTemporary(), LC::Util::Either< L, R >::EmbeddingLeft(), LC::Util::Either< L, R >::FromMaybe(), LC::Util::Either< L, R >::LeftLift(), LC::Util::Either< L, R >::LeftLift(), LC::Util::InstanceApplicative< Either< L, R > >::Pure(), LC::Util::Either< L, R >::Right(), LC::Util::SerializeJsonToFile(), and LC::Util::ToJson().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 104 of file either.h.
References LC::Util::Either< L, R >::GetLeft(), LC::Util::Either< L, R >::GetRight(), and LC::Util::Either< L, R >::IsRight().
Here is the call graph for this function: