21#ifdef COUCHBASE_ENTERPRISE
24#include "cbl/CBLEncryptable.h"
25#include "fleece/Fleece.hh"
98 void setInto(fleece::MutableDict dict, fleece::slice key)
const {
100 fleece::MutableDict mProps = props.asMutable();
102 mProps = props.mutableCopy();
124 inline static constexpr adopt_t adopt{};
#define CBL_REFCOUNTED_BOILERPLATE(CLASS, SUPER, C_TYPE)
Definition Base.hh:160
#define CBL_ASSUME_NONNULL_END
#define CBL_ASSUME_NONNULL_BEGIN
static Encryptable getEncryptableValue(fleece::Value value)
Returns the Encryptable that the given value represents, if any.
Definition Encryptable.hh:115
CBLEncryptable *_Nullable ref() const
Returns a pointer to the underlying C object (CBLEncryptable), or NULL if this is a null reference.
Definition Encryptable.hh:120
static bool isEncryptableValue(fleece::Dict dict)
Returns true if the given dictionary is the persistent form of an Encryptable.
Definition Encryptable.hh:108
static Encryptable createWithInt(int64_t value)
Creates an Encryptable wrapping a signed integer value.
Definition Encryptable.hh:65
fleece::Value value() const
Returns the value to be encrypted by the push replicator.
Definition Encryptable.hh:91
Encryptable(fleece::Value value)
Creates an Encryptable wrapping an arbitrary Fleece value.
Definition Encryptable.hh:43
static Encryptable createWithBool(bool value)
Creates an Encryptable wrapping a boolean value.
Definition Encryptable.hh:58
static Encryptable createWithFloat(float value)
Creates an Encryptable wrapping a float value.
Definition Encryptable.hh:79
Encryptable(std::string_view value)
Creates an Encryptable wrapping a string value.
Definition Encryptable.hh:47
static Encryptable createWithNull()
Creates an Encryptable wrapping a null value.
Definition Encryptable.hh:51
Encryptable() noexcept
Constructs a null reference (one that points to no object).
Definition Encryptable.hh:120
void setInto(fleece::MutableDict dict, fleece::slice key) const
Sets this encryptable value into dict under key.
Definition Encryptable.hh:98
static Encryptable createWithDouble(double value)
Creates an Encryptable wrapping a double value.
Definition Encryptable.hh:86
fleece::Dict properties() const
Returns the Encryptable's underlying dictionary representation (its persistent form).
Definition Encryptable.hh:94
static Encryptable createWithUInt(uint64_t value)
Creates an Encryptable wrapping an unsigned integer value.
Definition Encryptable.hh:72
CBLEncryptable * CBLEncryptable_CreateWithValue(FLValue value)
CBLEncryptable * CBLEncryptable_CreateWithUInt(uint64_t value)
CBLEncryptable * CBLEncryptable_CreateWithInt(int64_t value)
CBLEncryptable * CBLEncryptable_CreateWithBool(bool value)
CBLEncryptable * CBLEncryptable_CreateWithNull(void)
CBLEncryptable * CBLEncryptable_CreateWithString(FLString value)
CBLINLINE const CBLEncryptable *_cbl_nullable FLValue_GetEncryptableValue(FLValue _cbl_nullable value)
FLDict CBLEncryptable_Properties(const CBLEncryptable *encryptable)
struct CBLEncryptable CBLEncryptable
bool FLDict_IsEncryptableValue(FLDict _cbl_nullable)
CBLEncryptable * CBLEncryptable_CreateWithFloat(float value)
CBLEncryptable * CBLEncryptable_CreateWithDouble(double value)
FLValue CBLEncryptable_Value(const CBLEncryptable *encryptable)
struct CBLRefCounted CBLRefCounted
fleece::slice slice
Convenience alias for fleece::slice, a non-owning view of a byte range.
Definition Base.hh:49