CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
ilist.h
1
2#ifndef _aspose_system_collections_ilist_h_
3#define _aspose_system_collections_ilist_h_
4
5#include <system/collections/icollection.h>
6#include <system/exceptions.h>
7
8namespace System {
9namespace Collections {
10namespace Generic {
11
17template<typename T>
18class ASPOSECPP_SHARED_CLASS IList : public System::Collections::Generic::ICollection<T>
19{
21 RTTI_INFO_TEMPLATE_CLASS(System::Collections::Generic::IList<T>, System::BaseTypesInfo<System::Collections::Generic::ICollection<T>>);
22
23public:
29 typedef T ValueType;
30
34 virtual int IndexOf(const T& item) const = 0;
38 virtual void Insert(int index, const T& item) = 0;
41 virtual void RemoveAt(int index) = 0;
42
46 virtual T idx_get(int index) const = 0;
50 virtual void idx_set(int index, T value) = 0;
51
55 {
56 return false;
57 }
58};
59
60} // namespace Generic
61} // namespace Collections
62} // namespace System
63
64#endif // _aspose_system_collections_ilist_h_
Interface of collection of elements. Objects of this class should only be allocated using System::Mak...
Definition: icollection.h:20
Interface of indexed container of elements. Objects of this class should only be allocated using Syst...
Definition: ilist.h:19
virtual void Insert(int index, const T &item)=0
Inserts element into specified position, shifting other elements.
virtual void idx_set(int index, T value)=0
Sets element at specified index.
virtual void RemoveAt(int index)=0
Removes element at specified index.
virtual int IndexOf(const T &item) const =0
Gets index of first appearance of item in container.
ICollection< T > BaseType
Base type.
Definition: ilist.h:25
T ValueType
Value type.
Definition: ilist.h:29
virtual T idx_get(int index) const =0
Gets element at specified index.
IList< T > ThisType
This type.
Definition: ilist.h:27
bool get_IsFixedSize()
Checks whether the collection is of fixed size.
Definition: ilist.h:54
Definition: db_command.h:9