20 #ifndef RIPPLE_PROTOCOL_SEQ_PROXY_H_INCLUDED
21 #define RIPPLE_PROTOCOL_SEQ_PROXY_H_INCLUDED
120 friend constexpr
bool
128 friend constexpr
bool
131 return !(lhs == rhs);
134 friend constexpr
bool
142 friend constexpr
bool
148 friend constexpr
bool
154 friend constexpr
bool
163 os << (seqProx.
isSeq() ?
"sequence " :
"ticket ");
164 os << seqProx.
value();
constexpr friend bool operator>(SeqProxy lhs, SeqProxy rhs)
static constexpr SeqProxy sequence(std::uint32_t v)
Factory function to return a sequence-based SeqProxy.
constexpr bool isTicket() const
constexpr bool isSeq() const
friend std::ostream & operator<<(std::ostream &os, SeqProxy seqProx)
SeqProxy & advanceBy(std::uint32_t amount)
constexpr friend bool operator<(SeqProxy lhs, SeqProxy rhs)
SeqProxy & operator=(SeqProxy const &other)=default
constexpr std::uint32_t value() const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
A type that represents either a sequence value or a ticket value.
constexpr friend bool operator!=(SeqProxy lhs, SeqProxy rhs)
constexpr SeqProxy(Type t, std::uint32_t v)
constexpr friend bool operator<=(SeqProxy lhs, SeqProxy rhs)
constexpr friend bool operator==(SeqProxy lhs, SeqProxy rhs)
constexpr friend bool operator>=(SeqProxy lhs, SeqProxy rhs)