3#include "system/collections/base_set.h"
12template<
typename T>
class SortedSet;
35class ASPOSECPP_SHARED_CLASS
SortedSet :
public BaseSet<T, std::set<T, ComparerAdapter<T>, typename System::Details::CollectionHelpers::ContainerPointerMode<T>::allocator_type>>
47 RTTI_INFO_TEMPLATE_CLASS(
ThisType, System::BaseTypesInfo<System::Object>);
66#ifdef __DBG_FOR_EACH_MEMBER
70 void DBG_for_each_member(DBG::for_each_member_visitor &visitor)
const override
72 BaseType::DBG_for_each_member(visitor);
73 visitor.add_self(
this);
77 const char* DBG_class_name()
const override {
return "SortedSet<T>"; }
83#ifdef ASPOSE_GET_SHARED_MEMBERS
85 DEFINE_GET_SHARED_MEMBERS(BaseType::m_data);
Definition: base_set.h:19
Interface of collection of elements. Objects of this class should only be allocated using System::Mak...
Definition: icollection.h:20
Interface that compares two objects in greater-equal-less sense. Objects of this class should only be...
Definition: icomparer.h:20
Interface of object providing enumerator on contained elements.
Definition: ienumerable.h:25
Forward declaration of SortedSet class.
Definition: sorted_set.h:36
SortedSet()
Creates empty set.
Definition: sorted_set.h:51
SortedSet(const SharedPtr< IComparer< T > > &comparer)
Creates empty set that uses the specified equality comparer.
Definition: sorted_set.h:58
SortedSet(const SharedPtr< IEnumerable< T > > &items)
Creates SortedSet based on enumerable values.
Definition: sorted_set.h:64
~SortedSet() override
Destructor.
Definition: sorted_set.h:82
SortedSet(int capacity)
Creates empty set with specified capacity.
Definition: sorted_set.h:54
Pointer to keep SortedSet references. This type is a pointer to manage other object's deletion....
Definition: sorted_set.h:20
SortedSetPtr(const SharedPtr< SortedSet< T > > &obj)
Copy constructor.
Definition: sorted_set.h:26
SortedSetPtr()
Null pointer constructor.
Definition: sorted_set.h:23
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
Adapter to use IComparer within STL environment. Uses IComparer if set; otherwise,...
Definition: icomparer.h:44