20 #ifndef RIPPLE_PROTOCOL_TER_H_INCLUDED
21 #define RIPPLE_PROTOCOL_TER_H_INCLUDED
23 #include <ripple/basics/safe_cast.h>
24 #include <ripple/json/json_value.h>
290 return safe_cast<TERUnderlyingType>(v);
296 return safe_cast<TERUnderlyingType>(v);
302 return safe_cast<TERUnderlyingType>(v);
308 return safe_cast<TERUnderlyingType>(v);
314 return safe_cast<TERUnderlyingType>(v);
320 return safe_cast<TERUnderlyingType>(v);
326 template <
template <
typename>
class Trait>
355 Trait<std::remove_cv_t<std::remove_reference_t<T>>>::value>>
367 template <
typename T>
376 explicit operator bool()
const
392 return os << rhs.
code_;
420 template <
typename L,
typename R>
430 template <
typename L,
typename R>
440 template <
typename L,
typename R>
450 template <
typename L,
typename R>
460 template <
typename L,
typename R>
470 template <
typename L,
typename R>
490 template <
typename FROM>
521 template <
typename FROM>
bool operator>(base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b)
friend std::ostream & operator<<(std::ostream &os, TERSubset const &rhs)
bool operator>=(base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b)
constexpr friend TERUnderlyingType TERtoInt(TERSubset v)
std::string transToken(TER code)
constexpr TERUnderlyingType TERtoInt(TELcodes v)
bool operator==(Manifest const &lhs, Manifest const &rhs)
std::optional< TER > transCode(std::string const &token)
constexpr TERSubset(T rhs)
bool operator<=(base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b)
@ temBAD_SEND_XRP_PARTIAL
bool operator<(CanonicalTXSet::Key const &lhs, CanonicalTXSet::Key const &rhs)
bool operator!=(Manifest const &lhs, Manifest const &rhs)
TERSubset< CanCvtToTER > TER
constexpr auto operator=(T rhs) -> std::enable_if_t< Trait< T >::value, TERSubset & >
@ temBAD_SEND_XRP_NO_DIRECT
@ telCAN_NOT_QUEUE_BLOCKS
constexpr TERSubset(int rhs)
std::string transHuman(TER code)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool transResultInfo(TER code, std::string &token, std::string &text)
@ tecNO_LINE_INSUF_RESERVE
static constexpr TERSubset fromInt(int from)
@ tecINSUFFICIENT_RESERVE
@ telCAN_NOT_QUEUE_BALANCE
bool isTemMalformed(TER x)
constexpr TERSubset & operator=(TERSubset const &rhs)=default
@ telCAN_NOT_QUEUE_BLOCKED
@ tecCRYPTOCONDITION_ERROR