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>
26 #include <boost/optional.hpp>
290 {
return safe_cast<TERUnderlyingType>(v); }
293 {
return safe_cast<TERUnderlyingType>(v); }
296 {
return safe_cast<TERUnderlyingType>(v); }
299 {
return safe_cast<TERUnderlyingType>(v); }
302 {
return safe_cast<TERUnderlyingType>(v); }
305 {
return safe_cast<TERUnderlyingType>(v); }
310 template <
template<
typename>
class Trait>
329 template <typename T, typename = std::enable_if_t<Trait<T>::value>>
339 template <
typename T>
348 explicit operator bool()
const
363 return os << rhs.
code_;
390 template <
typename L,
typename R>
399 template <
typename L,
typename R>
408 template <
typename L,
typename R>
417 template <
typename L,
typename R>
426 template <
typename L,
typename R>
435 template <
typename L,
typename R>
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)
constexpr TERSubset(T rhs)
bool operator<=(base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b)
@ temBAD_SEND_XRP_PARTIAL
bool operator!=(Manifest const &lhs, Manifest const &rhs)
TERSubset< CanCvtToTER > TER
@ 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
boost::optional< TER > transCode(std::string const &token)
static constexpr TERSubset fromInt(int from)
@ tecINSUFFICIENT_RESERVE
bool operator<(base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b)
@ telCAN_NOT_QUEUE_BALANCE
bool isTemMalformed(TER x)
constexpr TERSubset & operator=(TERSubset const &rhs)=default
@ telCAN_NOT_QUEUE_BLOCKED
@ tecCRYPTOCONDITION_ERROR