3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/platform/brstd/move_only_function.h"
28 using OnReload = ::brstd::move_only_function<void(::ContentItemCollection&)>;
30 using SortPredicate = bool (*)(::ContentItem
const&, ::ContentItem
const&);
32 using FilterPredicate = ::brstd::move_only_function<bool(::ContentItem
const&)>;
37 ::ll::TypedStorage<8, 16, ::gsl::not_null<::std::shared_ptr<::ReadOnlyContentItemCollection>>> mAllItems;
38 ::ll::TypedStorage<8, 24, ::std::vector<::ContentItemCollection::ContentViewSource>> mContentViewSources;
39 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ContentItemCollection::ItemCollection>>>
41 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<void(::ContentItemCollection&)>> mOnReloaded;
42 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<bool(::ContentItem
const&)>> mFilter;
43 ::ll::TypedStorage<8, 8, bool (*)(::ContentItem
const&, ::ContentItem
const&)> mSort;
48 ContentItemCollection();
53 MCAPI
explicit ContentItemCollection(::ContentCollectionOptions&& options);
55 MCAPI
void createItemCollection(
56 ::gsl::not_null<::std::shared_ptr<::ContentItem>> itemProxy,
57 ::brstd::move_only_function<
bool(::ContentItem
const&)> predicate
60 MCAPI
void forceReload();
62 MCAPI ::std::vector<::gsl::not_null<::std::shared_ptr<::ContentItem const>>>
63 getCollection(::ContentItem
const& item);
65 MCAPI ::std::shared_ptr<::ContentItem const>
66 getItem(::brstd::move_only_function<
bool(::ContentItem
const&)> predicate);
68 MCAPI uint64 getTotalSize();
70 MCAPI
bool tryReload();
72 MCAPI ~ContentItemCollection();
78 MCAPI
void* $ctor(::ContentCollectionOptions&& options);
Definition ContentItemCollection.h:5
Definition ReadOnlyContentItemCollection.h:5
Definition ContentCollectionOptions.h:5
Definition ContentItemCollection.h:14
Definition ContentItemCollection.h:16
Definition ContentItem.h:5