20 #ifndef RIPPLE_CONDITIONS_CONDITION_H 
   21 #define RIPPLE_CONDITIONS_CONDITION_H 
   23 #include <ripple/basics/Buffer.h> 
   24 #include <ripple/basics/Slice.h> 
   25 #include <ripple/conditions/impl/utils.h> 
   34 namespace cryptoconditions {
 
  113     return !(lhs == rhs);
 
  
An immutable linear range of bytes.
 
std::set< Type > subtypes
For compound conditions, set of conditions includes.
 
Like std::vector<char> but better.
 
std::uint32_t cost
The cost associated with this condition.
 
static constexpr std::size_t maxSerializedCondition
The largest binary condition we support.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
bool operator==(Condition const &lhs, Condition const &rhs)
 
Buffer fingerprint
An identifier for this condition.
 
Condition(Type t, std::uint32_t c, Buffer &&fp)
 
Condition(Type t, std::uint32_t c, Slice fp)
 
static std::unique_ptr< Condition > deserialize(Slice s, std::error_code &ec)
Load a condition from its binary form.
 
bool operator!=(Condition const &lhs, Condition const &rhs)