LeviLamina
Loading...
Searching...
No Matches
ContentView.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7#include "mc/platform/brstd/move_only_function.h"
8
9// auto generated forward declare list
10// clang-format off
11class IContentManager;
12struct ContentItem;
13// clang-format on
14
16public:
17 // ContentView inner types define
18 using ConstContentItemPtr = ::std::shared_ptr<::ContentItem const>;
19
20 using ContentItemPtr = ::std::shared_ptr<::ContentItem>;
21
22public:
23 // member variables
24 // NOLINTBEGIN
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>)>>
29 mSortFunction;
30 ::ll::TypedStorage<8, 64, ::std::function<void()>> mOnReload;
31 ::ll::TypedStorage<8, 24, ::std::vector<::ContentView const*>> mContentViewSources;
32 // NOLINTEND
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~ContentView() /*override*/;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI uint64 countIf(::std::function<bool(::std::shared_ptr<::ContentItem> const&)> predicate) const;
44
45 MCFOLD ::std::shared_ptr<::ContentItem const> getItem(uint index) const;
46
47 MCFOLD ::std::shared_ptr<::ContentItem> getItem(uint index);
48
49 MCAPI ::std::shared_ptr<::ContentItem> getItem(::std::function<bool(::ContentItem const&)> predicate) const;
50
51 MCAPI uint getNumberOfItems() const;
52
53 MCAPI uint64 getTotalSize() const;
54
55 MCFOLD void onReload(::std::function<void()> callback);
56
57 MCAPI void reload();
58
59 MCAPI void setSortFunc(
60 ::std::function<bool(::std::shared_ptr<::ContentItem> const&, ::std::shared_ptr<::ContentItem> const&)> sortFunc
61 );
62 // NOLINTEND
63
64public:
65 // destructor thunk
66 // NOLINTBEGIN
67 MCAPI void $dtor();
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftable();
74 // NOLINTEND
75};
Definition EnableNonOwnerReferences.h:7
Definition ContentView.h:5
static MCAPI void ** $vftable()
Definition IContentManager.h:5
Definition ContentItem.h:5