Barretenberg
The ZK-SNARK library at the core of Aztec
|
A 1-bit unsigned integer type. More...
#include <uint1.hpp>
Public Member Functions | |
uint1_t (const uint1_t &other)=default | |
uint1_t & | operator= (const uint1_t &other)=default |
constexpr | uint1_t () noexcept |
constexpr | uint1_t (bool b) noexcept |
template<typename T , typename = std::enable_if_t<std::is_integral_v<T>>> | |
constexpr | uint1_t (T v) noexcept |
constexpr uint1_t | operator+ (const uint1_t &other) const noexcept |
constexpr uint1_t | operator- (const uint1_t &other) const noexcept |
constexpr uint1_t | operator* (const uint1_t &other) const noexcept |
constexpr uint1_t | operator/ (const uint1_t &other) const noexcept |
constexpr uint1_t | operator- () const noexcept |
constexpr uint1_t | operator& (const uint1_t &other) const noexcept |
constexpr uint1_t | operator| (const uint1_t &other) const noexcept |
constexpr uint1_t | operator^ (const uint1_t &other) const noexcept |
constexpr uint1_t | operator~ () const noexcept |
constexpr uint1_t | operator<< (const uint1_t &other) const noexcept |
constexpr uint1_t | operator>> (const uint1_t &other) const noexcept |
constexpr bool | operator== (const uint1_t &other) const noexcept=default |
constexpr bool | operator!= (const uint1_t &other) const noexcept=default |
constexpr bool | operator< (const uint1_t &other) const noexcept |
constexpr bool | operator<= (const uint1_t &other) const noexcept |
constexpr bool | operator> (const uint1_t &other) const noexcept |
constexpr bool | operator>= (const uint1_t &other) const noexcept |
constexpr uint8_t | value () const noexcept |
constexpr | operator uint8_t () const noexcept |
Private Attributes | |
bool | value_ |
A 1-bit unsigned integer type.
This type is used to represent boolean values in a way that's compatible with the TaggedValue system. It behaves like a regular integer type but only allows values 0 and 1.
|
default |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefaultnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |