#include <result.h>
Public Member Functions | |
constexpr | BlockResult (BlockType *block) |
constexpr | BlockResult (BlockType *block, Status status) |
constexpr | BlockResult (BlockType *block, Prev prev) |
constexpr | BlockResult (BlockType *block, Prev prev, size_t shifted_to_prev) |
constexpr | BlockResult (BlockType *block, Next next) |
constexpr | BlockResult (BlockType *block, Prev prev, Next next) |
constexpr | BlockResult (BlockType *block, Prev prev, Next next, size_t shifted_to_prev) |
constexpr BlockType * | block () const |
![]() | |
constexpr Prev | prev () const |
constexpr Next | next () const |
constexpr size_t | size () const |
constexpr bool | ok () const |
constexpr Status | status () const |
constexpr void | IgnoreUnlessStrict () const |
Additional Inherited Members | |
![]() | |
enum class | Prev : uint8_t { kUnchanged , kSplitNew , kResizedSmaller , kResizedLarger } |
enum class | Next : uint8_t { kUnchanged , kSplitNew , kResized , kMerged } |
![]() | |
constexpr | GenericBlockResult (Status status, Prev prev, Next next, size_t size) |
Extends GenericBlockResult
to include a pointer to a block.
The included pointer is to the block affected by the operation that produced a result. On error, this should be the original block. On success, it may be a newly produced block.
BlockType | The type of the block included in the result. |