3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/screens/models/ContentItemCollectionVersion.h"
7#include "mc/platform/brstd/move_only_function.h"
30 ::ll::TypedStorage<4, 4, ::ContentItemCollectionVersion> mLastVersion;
31 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::IVersionedContentItemCollection const>> mCollection;
39 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::ContentItem>>> mItemProxy;
40 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<bool(::ContentItem
const&)>> mPredicate;
41 ::ll::TypedStorage<8, 24, ::std::vector<::gsl::not_null<::std::shared_ptr<::ContentItem const>>>> mCollection;
47 MCAPI ~ItemCollection();
57 using OnReload = ::brstd::move_only_function<void(::ContentItemCollection&)>;
59 using SortPredicate = bool (*)(::ContentItem
const&, ::ContentItem
const&);
61 using FilterPredicate = ::brstd::move_only_function<bool(::ContentItem
const&)>;
66 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::ReadOnlyContentItemCollection>>> mAllItems;
67 ::ll::TypedStorage<8, 24, ::std::vector<::ContentItemCollection::ContentViewSource>> mContentViewSources;
68 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ContentItemCollection::ItemCollection>>>
70 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<void(::ContentItemCollection&)>> mOnReloaded;
71 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<bool(::ContentItem
const&)>> mFilter;
72 ::ll::TypedStorage<8, 8, bool (*)(::ContentItem
const&, ::ContentItem
const&)> mSort;
77 ContentItemCollection();
82 MCAPI
explicit ContentItemCollection(::ContentCollectionOptions&& options);
84 MCAPI
void createItemCollection(
85 ::gsl::not_null<::std::shared_ptr<::ContentItem>> itemProxy,
86 ::brstd::move_only_function<
bool(::ContentItem
const&)> predicate
89 MCAPI
void forceReload();
91 MCAPI ::std::vector<::gsl::not_null<::std::shared_ptr<::ContentItem const>>>
92 getCollection(::ContentItem
const& item);
94 MCAPI ::std::shared_ptr<::ContentItem const>
95 getItem(::brstd::move_only_function<
bool(::ContentItem
const&)> predicate);
97 MCAPI uint64 getTotalSize();
99 MCAPI
bool tryReload();
101 MCAPI ~ContentItemCollection();
107 MCAPI
void* $ctor(::ContentCollectionOptions&& options);
Definition ContentItemCollection.h:5
Definition IVersionedContentItemCollection.h:5
Definition ReadOnlyContentItemCollection.h:5
Definition ContentCollectionOptions.h:5
Definition ContentItemCollection.h:14
Definition ContentItemCollection.h:16
Definition ContentItem.h:5