Loading src/common/api/admire_types.hpp +6 −0 Viewed Changes for src/common/api/admire_types.hpp: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -176,8 +176,11 @@ struct adhoc_storage : public storage { bool should_flush); adhoc_storage(enum storage::type type, std::string id, ADM_adhoc_context_t ctx); adhoc_storage(const adhoc_storage& other) noexcept; adhoc_storage(adhoc_storage&&) noexcept = default; adhoc_storage& operator=(const adhoc_storage&) noexcept; adhoc_storage& operator=(adhoc_storage&&) noexcept = default; ~adhoc_storage() override; Loading Loading @@ -207,8 +210,11 @@ struct pfs_storage : public storage { pfs_storage(enum storage::type type, std::string id, std::filesystem::path mount_point); pfs_storage(enum storage::type type, std::string id, ADM_pfs_context_t ctx); pfs_storage(const pfs_storage& other) noexcept; pfs_storage(pfs_storage&&) noexcept = default; pfs_storage& operator=(const pfs_storage& other) noexcept; pfs_storage& operator=(pfs_storage&&) noexcept = default; ~pfs_storage() override; Loading src/common/api/types.cpp +20 −0 Viewed Changes for src/common/api/types.cpp: 20 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -924,6 +924,16 @@ adhoc_storage::adhoc_storage(enum storage::type type, std::string id, : storage(type, std::move(id)), m_pimpl(std::make_unique<impl>(adhoc_storage::ctx{ctx})) {} adhoc_storage::adhoc_storage(const adhoc_storage& other) noexcept : storage(other.m_type, other.m_id), m_pimpl(std::make_unique<impl>(*other.m_pimpl)) {} adhoc_storage& adhoc_storage::operator=(const adhoc_storage& other) noexcept { this->m_pimpl = std::make_unique<impl>(*other.m_pimpl); return *this; } std::shared_ptr<storage::ctx> adhoc_storage::context() const { return std::make_shared<adhoc_storage::ctx>(m_pimpl->context()); Loading @@ -936,6 +946,16 @@ pfs_storage::ctx::ctx(std::filesystem::path mount_point) pfs_storage::ctx::ctx(ADM_pfs_context_t ctx) : pfs_storage::ctx(ctx->c_mount) {} pfs_storage::pfs_storage(const pfs_storage& other) noexcept : storage(other.m_type, other.m_id), m_pimpl(std::make_unique<impl>(*other.m_pimpl)) {} pfs_storage& pfs_storage::operator=(const pfs_storage& other) noexcept { this->m_pimpl = std::make_unique<impl>(*other.m_pimpl); return *this; } std::filesystem::path pfs_storage::ctx::mount_point() const { return m_mount_point; Loading Loading
src/common/api/admire_types.hpp +6 −0 Viewed Changes for src/common/api/admire_types.hpp: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -176,8 +176,11 @@ struct adhoc_storage : public storage { bool should_flush); adhoc_storage(enum storage::type type, std::string id, ADM_adhoc_context_t ctx); adhoc_storage(const adhoc_storage& other) noexcept; adhoc_storage(adhoc_storage&&) noexcept = default; adhoc_storage& operator=(const adhoc_storage&) noexcept; adhoc_storage& operator=(adhoc_storage&&) noexcept = default; ~adhoc_storage() override; Loading Loading @@ -207,8 +210,11 @@ struct pfs_storage : public storage { pfs_storage(enum storage::type type, std::string id, std::filesystem::path mount_point); pfs_storage(enum storage::type type, std::string id, ADM_pfs_context_t ctx); pfs_storage(const pfs_storage& other) noexcept; pfs_storage(pfs_storage&&) noexcept = default; pfs_storage& operator=(const pfs_storage& other) noexcept; pfs_storage& operator=(pfs_storage&&) noexcept = default; ~pfs_storage() override; Loading
src/common/api/types.cpp +20 −0 Viewed Changes for src/common/api/types.cpp: 20 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -924,6 +924,16 @@ adhoc_storage::adhoc_storage(enum storage::type type, std::string id, : storage(type, std::move(id)), m_pimpl(std::make_unique<impl>(adhoc_storage::ctx{ctx})) {} adhoc_storage::adhoc_storage(const adhoc_storage& other) noexcept : storage(other.m_type, other.m_id), m_pimpl(std::make_unique<impl>(*other.m_pimpl)) {} adhoc_storage& adhoc_storage::operator=(const adhoc_storage& other) noexcept { this->m_pimpl = std::make_unique<impl>(*other.m_pimpl); return *this; } std::shared_ptr<storage::ctx> adhoc_storage::context() const { return std::make_shared<adhoc_storage::ctx>(m_pimpl->context()); Loading @@ -936,6 +946,16 @@ pfs_storage::ctx::ctx(std::filesystem::path mount_point) pfs_storage::ctx::ctx(ADM_pfs_context_t ctx) : pfs_storage::ctx(ctx->c_mount) {} pfs_storage::pfs_storage(const pfs_storage& other) noexcept : storage(other.m_type, other.m_id), m_pimpl(std::make_unique<impl>(*other.m_pimpl)) {} pfs_storage& pfs_storage::operator=(const pfs_storage& other) noexcept { this->m_pimpl = std::make_unique<impl>(*other.m_pimpl); return *this; } std::filesystem::path pfs_storage::ctx::mount_point() const { return m_mount_point; Loading