54std::string makeFileIngestionPrefix(FileIngestionMethod m);
97 static std::pair<ContentAddressMethod, HashType>
parse(std::string_view rawCaMethod);
105 std::string
render(HashType ht)
const;
144 std::string
render()
const;
148 static std::optional<ContentAddress> parseOpt(std::string_view rawCaOpt);
150 std::string printMethodAlgo()
const;
157std::string renderContentAddress(std::optional<ContentAddress> ca);
243 typedef std::variant<
272 static std::optional<ContentAddressWithReferences>
fromPartsOpt(
277 Hash getHash()
const;
#define GENERATE_CMP(args...)
Definition comparator.hh:65
FileIngestionMethod
Definition content-address.hh:38
@ Recursive
Definition content-address.hh:47
@ Flat
Definition content-address.hh:42
Definition content-address.hh:65
std::string render(HashType ht) const
Definition content-address.cc:42
std::string renderPrefix() const
Definition content-address.cc:20
static ContentAddressMethod parsePrefix(std::string_view &m)
Definition content-address.cc:31
static std::pair< ContentAddressMethod, HashType > parse(std::string_view rawCaMethod)
Definition content-address.cc:125
Definition content-address.hh:242
static std::optional< ContentAddressWithReferences > fromPartsOpt(ContentAddressMethod method, Hash hash, StoreReferences refs)
Definition content-address.cc:180
static ContentAddressWithReferences withoutRefs(const ContentAddress &)
Definition content-address.cc:161
Definition content-address.hh:126
Hash hash
Definition content-address.hh:135
ContentAddressMethod method
Definition content-address.hh:130
std::string render() const
Definition content-address.cc:54
Definition content-address.hh:217
FileIngestionMethod method
Definition content-address.hh:221
StoreReferences references
Definition content-address.hh:231
Hash hash
Definition content-address.hh:226
Definition content-address.hh:173
bool empty() const
Definition content-address.cc:151
StorePathSet others
Definition content-address.hh:177
bool self
Definition content-address.hh:182
size_t size() const
Definition content-address.cc:156
Definition content-address.hh:201
Hash hash
Definition content-address.hh:205
StorePathSet references
Definition content-address.hh:211
Definition content-address.hh:32
#define MAKE_WRAPPER_CONSTRUCTOR(CLASS_NAME)
Definition variant-wrapper.hh:27