![]() |
Botcraft 1.21.5
|
#include <Either.hpp>
Public Member Functions | |
virtual | ~Either () |
const std::optional< T > & | GetLeft () const |
const std::optional< T > & | GetRight () const |
auto & | SetLeft (const std::optional< T > &left_) |
auto & | SetRight (const std::optional< T > &right_) |
![]() | |
virtual | ~NetworkType () |
virtual void | Read (ReadIterator &iter, size_t &length) |
virtual void | Write (WriteContainer &container) const |
virtual Json::Value | Serialize () const |
Protected Member Functions | |
virtual void | ReadImpl (ReadIterator &iter, size_t &length) override |
virtual void | WriteImpl (WriteContainer &container) const override |
virtual Json::Value | SerializeImpl () const override |
Private Attributes | |
std::optional< T > | left |
std::optional< U > | right |
Definition at line 10 of file Either.hpp.
|
inlinevirtual |
Definition at line 13 of file Either.hpp.
|
inline |
Definition at line 19 of file Either.hpp.
References ProtocolCraft::Either< T, U >::left.
|
inline |
Definition at line 24 of file Either.hpp.
References ProtocolCraft::Either< T, U >::right.
|
inlineoverrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 51 of file Either.hpp.
References ProtocolCraft::Either< T, U >::left, and ProtocolCraft::Either< T, U >::right.
|
inlineoverrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 79 of file Either.hpp.
References ProtocolCraft::Either< T, U >::left, and ProtocolCraft::Either< T, U >::right.
|
inline |
Definition at line 30 of file Either.hpp.
References ProtocolCraft::Either< T, U >::left, and ProtocolCraft::Either< T, U >::right.
|
inline |
Definition at line 40 of file Either.hpp.
References ProtocolCraft::Either< T, U >::left, and ProtocolCraft::Either< T, U >::right.
|
inlineoverrideprotectedvirtual |
Implements ProtocolCraft::NetworkType.
Definition at line 66 of file Either.hpp.
References ProtocolCraft::Either< T, U >::left, and ProtocolCraft::Either< T, U >::right.
|
private |
Definition at line 96 of file Either.hpp.
Referenced by ProtocolCraft::Either< T, U >::GetLeft(), ProtocolCraft::Either< T, U >::ReadImpl(), ProtocolCraft::Either< T, U >::SerializeImpl(), ProtocolCraft::Either< T, U >::SetLeft(), ProtocolCraft::Either< T, U >::SetRight(), and ProtocolCraft::Either< T, U >::WriteImpl().
|
private |
Definition at line 97 of file Either.hpp.
Referenced by ProtocolCraft::Either< T, U >::GetRight(), ProtocolCraft::Either< T, U >::ReadImpl(), ProtocolCraft::Either< T, U >::SerializeImpl(), ProtocolCraft::Either< T, U >::SetLeft(), ProtocolCraft::Either< T, U >::SetRight(), and ProtocolCraft::Either< T, U >::WriteImpl().