8 #include <system/collections/list.h>
9 #include <system/collections/ilist.h>
10 #include <system/collections/icomparer.h>
11 #include <system/array.h>
14 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
20 class ExtendedAttribute;
21 class IExtendedAttributeParent;
30 class ResourceAssignmentNodeReader;
31 class ResourceAssignmentNodeWriter;
32 class ResourceNodeReader;
37 class ResourceAssignment;
40 class AverageFirstSublevelRollupCalculator;
41 class AverageRollupCalculator;
42 class MinMaxRollupCalculator;
43 template <
typename>
class RollupCalculatorBase;
48 class CalculatedExtendedAttributeUtils;
49 class EnsureExtendedAttribute;
52 class FieldHelperInternal;
55 namespace Visualization
57 template <
typename>
class FieldToColumnText;
67 template <
typename>
class IEnumerator;
79 class ASPOSE_TASKS_SHARED_CLASS
ExtendedAttributeCollection :
public System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::ExtendedAttribute>>
82 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::ExtendedAttribute>> BaseType;
84 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
85 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
90 friend class Aspose::Tasks::IO::Mpx::MpxUtils;
91 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentNodeReader;
92 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentNodeWriter;
93 friend class Aspose::Tasks::IO::Xml::ResourceNodeReader;
94 friend class Aspose::Tasks::IO::Xml::TaskNodeReader;
95 friend class Aspose::Tasks::Rollup::AverageFirstSublevelRollupCalculator;
96 friend class Aspose::Tasks::Rollup::AverageRollupCalculator;
97 template<
typename FT0>
friend class Aspose::Tasks::Rollup::RollupCalculatorBase;
98 friend class Aspose::Tasks::Rollup::MinMaxRollupCalculator;
99 friend class Aspose::Tasks::Util::CalculatedExtendedAttributeUtils;
100 friend class Aspose::Tasks::Util::EnsureExtendedAttribute;
101 friend class Aspose::Tasks::Util::Fields::FieldHelperInternal;
102 template<
typename FT0>
friend class Aspose::Tasks::Visualization::FieldToColumnText;
108 using iterator =
typename iterator_holder_type::iterator;
118 class FieldIdComparer final :
public System::Collections::Generic::IComparer<System::SharedPtr<Aspose::Tasks::ExtendedAttribute>>
121 typedef System::Collections::Generic::IComparer<System::SharedPtr<Aspose::Tasks::ExtendedAttribute>> BaseType;
123 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
135 int32_t Compare(
const System::SharedPtr<ExtendedAttribute>& x,
const System::SharedPtr<ExtendedAttribute>& y)
const override;
145 ASPOSE_TASKS_SHARED_API int32_t get_Count()
const override;
149 ASPOSE_TASKS_SHARED_API
bool get_IsReadOnly()
const override;
156 ASPOSE_TASKS_SHARED_API System::SharedPtr<ExtendedAttribute> idx_get(int32_t index)
const override;
162 ASPOSE_TASKS_SHARED_API
void idx_set(int32_t index, System::SharedPtr<ExtendedAttribute> value)
override;
168 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<ExtendedAttribute>>> GetEnumerator()
override;
173 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<ExtendedAttribute>& item)
override;
177 ASPOSE_TASKS_SHARED_API
void Clear()
override;
183 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<ExtendedAttribute>& item)
const override;
189 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<ExtendedAttribute>> array, int32_t arrayIndex)
override;
195 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<ExtendedAttribute>& item)
override;
201 ASPOSE_TASKS_SHARED_API int32_t IndexOf(
const System::SharedPtr<ExtendedAttribute>& item)
const override;
207 ASPOSE_TASKS_SHARED_API
void Insert(int32_t index,
const System::SharedPtr<ExtendedAttribute>& item)
override;
212 ASPOSE_TASKS_SHARED_API
void RemoveAt(int32_t index)
override;
215 ASPOSE_TASKS_SHARED_API iterator begin() noexcept;
218 ASPOSE_TASKS_SHARED_API iterator end() noexcept;
221 ASPOSE_TASKS_SHARED_API const_iterator begin() const noexcept;
224 ASPOSE_TASKS_SHARED_API const_iterator end() const noexcept;
227 ASPOSE_TASKS_SHARED_API const_iterator cbegin() const noexcept;
230 ASPOSE_TASKS_SHARED_API const_iterator cend() const noexcept;
235 ASPOSE_TASKS_SHARED_API virtualized_iterator* virtualizeBeginIterator() override;
240 ASPOSE_TASKS_SHARED_API virtualized_iterator* virtualizeEndIterator() override;
245 ASPOSE_TASKS_SHARED_API virtualized_iterator* virtualizeBeginConstIterator() const override;
250 ASPOSE_TASKS_SHARED_API virtualized_iterator* virtualizeEndConstIterator() const override;
254 ASPOSE_TASKS_SHARED_API
ExtendedAttributeCollection(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<
ExtendedAttribute>>>& extendedAttributes, const System::SharedPtr<IExtendedAttributeParent>& parent);
256 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ExtendedAttributeCollection, CODEPORTING_ARGS(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<
ExtendedAttribute>>>& extendedAttributes, const System::SharedPtr<IExtendedAttributeParent>& parent));
258 ASPOSE_TASKS_SHARED_API ExtendedAttributeCollection(const System::SharedPtr<IExtendedAttributeParent>& parent);
260 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ExtendedAttributeCollection, CODEPORTING_ARGS(const System::SharedPtr<IExtendedAttributeParent>& parent));
261 ASPOSE_TASKS_SHARED_API
void Sort();
262 ASPOSE_TASKS_SHARED_API System::SharedPtr<
ExtendedAttribute> GetByFieldId(int32_t fieldId);
263 ASPOSE_TASKS_SHARED_API System::SharedPtr<
ExtendedAttribute> GetByFieldId(const System::String& fieldId);
264 ASPOSE_TASKS_SHARED_API
void SetCapacity(int32_t capacity);
266 virtual ASPOSE_TASKS_SHARED_API ~ExtendedAttributeCollection();
268 #ifdef ASPOSE_GET_SHARED_MEMBERS
269 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
275 System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<ExtendedAttribute>>> extendedAttributes;
276 System::WeakPtr<IExtendedAttributeParent> parent;
typename iterator_holder_type::const_iterator const_iterator
Const iterator type.
Definition: ExtendedAttributeCollection.h:110
typename iterator_holder_type::virtualized_iterator_element virtualized_iterator_element
Virtualized element type.
Definition: ExtendedAttributeCollection.h:112
Represents a task in a project.
Definition: Task.h:383
Represents a collection of ExtendedAttribute objects.
Definition: ExtendedAttributeCollection.h:79
Represents extended attributes.
Definition: ExtendedAttribute.h:137
System::Collections::Generic::List< System::SharedPtr< ExtendedAttribute >> iterator_holder_type
A collection type whose iterator types is used as iterator types in the current collection.
Definition: ExtendedAttributeCollection.h:106
typename iterator_holder_type::iterator iterator
Iterator type.
Definition: ExtendedAttributeCollection.h:108
Represents a resource assignment in a project.
Definition: ResourceAssignment.h:221
typename iterator_holder_type::virtualized_iterator virtualized_iterator
Virtualized type.
Definition: ExtendedAttributeCollection.h:114
Represents a resource in a project.
Definition: Resource.h:206