-
Notifications
You must be signed in to change notification settings - Fork 16
/
BaseCollection.h
32 lines (28 loc) · 1.11 KB
/
BaseCollection.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "BaseCollection.g.h"
namespace winrt::test_component::implementation
{
struct BaseCollection : BaseCollectionT<BaseCollection>
{
BaseCollection() = default;
Windows::Foundation::Collections::IIterator<test_component::Base> First();
test_component::Base GetAt(uint32_t index);
uint32_t Size();
Windows::Foundation::Collections::IVectorView<test_component::Base> GetView();
bool IndexOf(test_component::Base const& value, uint32_t& index);
void SetAt(uint32_t index, test_component::Base const& value);
void InsertAt(uint32_t index, test_component::Base const& value);
void RemoveAt(uint32_t index);
void Append(test_component::Base const& value);
void RemoveAtEnd();
void Clear();
uint32_t GetMany(uint32_t startIndex, array_view<test_component::Base> items);
void ReplaceAll(array_view<test_component::Base const> items);
};
}
namespace winrt::test_component::factory_implementation
{
struct BaseCollection : BaseCollectionT<BaseCollection, implementation::BaseCollection>
{
};
}