CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
ilist_ng.h
1#pragma once
2#include <system/collections/icollection_ng.h>
3
4namespace System {
5namespace Collections {
6
8class ASPOSECPP_SHARED_CLASS IList : virtual public System::Collections::ICollection
9{
11 RTTI_INFO_TEMPLATE_CLASS(System::Collections::IList, System::BaseTypesInfo<System::Collections::ICollection>);
12public:
17 virtual SharedPtr<System::Object> idx_get(int index, int dummy = 0) const = 0;
18
22 virtual int Add(SharedPtr<System::Object> item) = 0;
23
26 virtual void Remove(SharedPtr<System::Object> item) = 0;
27
29 virtual void Clear() = 0;
30
34 virtual bool Contains(SharedPtr<System::Object> item) const = 0;
35
39 virtual int IndexOf(SharedPtr<System::Object> item) const = 0;
40
44 virtual void Insert(int index, SharedPtr<System::Object> item) = 0;
45
48 virtual void RemoveAt(int index) = 0;
49
52 virtual bool get_IsFixedSize() const { return false; }
53};
54
55} // namespace Collection
56} // namespace System
57
58
Defines non generic collection interface.
Definition: icollection_ng.h:11
IList Represents a non-generic collection of objects that can be individually accessed by index.
Definition: ilist_ng.h:9
virtual int IndexOf(SharedPtr< System::Object > item) const =0
Gets the first index of the specified item.
virtual bool Contains(SharedPtr< System::Object > item) const =0
Checks if the item is in the list.
virtual int Add(SharedPtr< System::Object > item)=0
Adds item to the end of list.
virtual void Remove(SharedPtr< System::Object > item)=0
Removes the first instance of the specified item from the list.
virtual void Insert(int index, SharedPtr< System::Object > item)=0
Inserts the item to the list at the specified index.
virtual bool get_IsFixedSize() const
Gets a value indicating whether the list has a fixed size.
Definition: ilist_ng.h:52
virtual void Clear()=0
Removes all items from the list.
virtual void RemoveAt(int index)=0
Removes the item from the list at the specified index.
virtual SharedPtr< System::Object > idx_get(int index, int dummy=0) const =0
Gets the item at the specified index.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9