CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
iset.h
1
2#ifndef _ISet_h_
3#define _ISet_h_
4
5#include "system/collections/icollection.h"
6
7namespace System {
8namespace Collections {
9namespace Generic {
10
16template<typename T>
17class ASPOSECPP_SHARED_CLASS ISet : public ICollection<T>
18{
20 RTTI_INFO_TEMPLATE_CLASS(System::Collections::Generic::ISet<T>, System::BaseTypesInfo<System::Collections::Generic::ICollection<T>>);
21
22public:
25
27 virtual ~ISet() {}
28
31 virtual void ExceptWith(IEnumerablePtr other) = 0;
32
35 virtual void IntersectWith(IEnumerablePtr other) = 0;
36
40 virtual bool IsProperSubsetOf(IEnumerablePtr other) = 0;
41
45 virtual bool IsProperSupersetOf(IEnumerablePtr other) = 0;
46
50 virtual bool IsSubsetOf(IEnumerablePtr other) = 0;
51
55 virtual bool IsSupersetOf(IEnumerablePtr other) = 0;
56
60 virtual bool Overlaps(IEnumerablePtr other) = 0;
61
65 virtual bool SetEquals(IEnumerablePtr other) = 0;
66
70 virtual void SymmetricExceptWith(IEnumerablePtr other) = 0;
71
74 virtual void UnionWith(IEnumerablePtr other) = 0;
75};
76
77
78} // namespace Generic
79} // namespace Collections
80} // namespace System
81
82#endif // _ISet_h_
Interface of collection of elements. Objects of this class should only be allocated using System::Mak...
Definition: icollection.h:20
Interface of collection containing a set of unique elements. Objects of this class should only be all...
Definition: iset.h:18
virtual bool IsSupersetOf(IEnumerablePtr other)=0
Checks if current set is a superset of other container.
virtual void UnionWith(IEnumerablePtr other)=0
Adds elements from specified collection that are not present in current set yet.
SharedPtr< IEnumerable< T > > IEnumerablePtr
Enumerable type to compare contents of current set to.
Definition: iset.h:24
virtual void SymmetricExceptWith(IEnumerablePtr other)=0
Calculates symmetric exception of two containers. Removes all elements that are present in both conta...
virtual bool IsSubsetOf(IEnumerablePtr other)=0
Checks if current set is a subset of other container.
virtual bool IsProperSupersetOf(IEnumerablePtr other)=0
Checks if current set is a strict superset of other container.
virtual bool IsProperSubsetOf(IEnumerablePtr other)=0
Checks if current set is a strict subset of other container.
virtual bool Overlaps(IEnumerablePtr other)=0
Checks if set overlaps with other container.
virtual void ExceptWith(IEnumerablePtr other)=0
Removes group of elements.
virtual ~ISet()
Destructor.
Definition: iset.h:27
virtual void IntersectWith(IEnumerablePtr other)=0
Removes elements not present in different container.
virtual bool SetEquals(IEnumerablePtr other)=0
Checks if set and container contain same elements.
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