3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7#include "mc/platform/brstd/move_only_function.h"
18 using ConstContentItemPtr = ::std::shared_ptr<::ContentItem const>;
20 using ContentItemPtr = ::std::shared_ptr<::ContentItem>;
25 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::IContentManager>> mContentManager;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::ContentItem>>> mItems;
27 ::ll::TypedStorage<8, 64, ::brstd::move_only_function<bool(::std::shared_ptr<::ContentItem>)>> mPredicate;
28 ::ll::TypedStorage<8, 64, ::std::function<bool(::std::shared_ptr<::ContentItem>, ::std::shared_ptr<::ContentItem>)>>
30 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnReload;
31 ::ll::TypedStorage<8, 24, ::std::vector<::ContentView const*>> mContentViewSources;
37 virtual ~ContentView() ;
43 MCAPI uint64 countIf(::std::function<
bool(::std::shared_ptr<::ContentItem>
const&)> predicate)
const;
45 MCFOLD ::std::shared_ptr<::ContentItem const> getItem(uint index)
const;
47 MCFOLD ::std::shared_ptr<::ContentItem> getItem(uint index);
49 MCAPI ::std::shared_ptr<::ContentItem> getItem(::std::function<
bool(::ContentItem
const&)> predicate)
const;
51 MCAPI uint getNumberOfItems()
const;
53 MCAPI uint64 getTotalSize()
const;
55 MCFOLD
void onReload(::std::function<
void()> callback);
59 MCAPI
void setSortFunc(
60 ::std::function<
bool(::std::shared_ptr<::ContentItem>
const&, ::std::shared_ptr<::ContentItem>
const&)> sortFunc
Definition EnableNonOwnerReferences.h:7
Definition ContentView.h:5
static MCAPI void ** $vftable()
Definition IContentManager.h:5
Definition ContentItem.h:5