refactor(metadata): further split interface / implementation

This commit is contained in:
Marcus Holland-Moritz 2025-04-06 18:53:48 +02:00
parent a26ab4d6f3
commit eecf24acd8
4 changed files with 973 additions and 847 deletions

View File

@ -347,6 +347,10 @@ class log_proxy {
#define LOG_PROXY(policy, lgr) ::dwarfs::log_proxy<policy> log_(lgr)
#define LOG_PROXY_DECL(policy) ::dwarfs::log_proxy<policy> log_
#define LOG_PROXY_REF(policy) ::dwarfs::log_proxy<policy> const& log_
#define LOG_PROXY_REF_(policy) LOG_PROXY_REF(policy),
#define LOG_PROXY_ARG log_
#define LOG_PROXY_ARG_ log_,
#define LOG_PROXY_INIT(lgr) log_(lgr)
#define LOG_GET_LOGGER log_.get_logger()
#define LOG_FATAL log_.fatal(DWARFS_CURRENT_SOURCE_LOCATION)

View File

@ -52,8 +52,7 @@ class logger;
namespace reader::internal {
template <typename T>
class metadata_;
class metadata_v2_data;
class global_metadata {
public:
@ -208,8 +207,7 @@ class chunk_range {
using Meta =
::apache::thrift::frozen::MappedFrozen<thrift::metadata::metadata>;
template <typename T>
friend class internal::metadata_;
friend class internal::metadata_v2_data;
public:
class iterator

View File

@ -43,8 +43,7 @@ namespace dwarfs::reader {
namespace internal {
template <typename T>
class metadata_;
class metadata_v2_data;
class inode_view_impl;
class dir_entry_view_impl;
@ -146,9 +145,7 @@ class directory_iterator {
static_assert(std::input_iterator<directory_iterator>);
class directory_view {
template <typename T>
friend class internal::metadata_;
friend class internal::metadata_v2_data;
friend class dir_entry_view;
public:

File diff suppressed because it is too large Load Diff