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;
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;
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));
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);
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;
Represents a collection of ExtendedAttribute objects.
Definition: ExtendedAttributeCollection.h:80
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< ExtendedAttribute > > > GetEnumerator() override
Returns an enumerator for this collection.
iterator begin() noexcept
void Add(const System::SharedPtr< ExtendedAttribute > &item) override
Adds the specified item to this collection.
void Insert(int32_t index, const System::SharedPtr< ExtendedAttribute > &item) override
Inserts the specified item at the specified index.
bool get_IsReadOnly() const override
Gets a value indicating whether this collection is read-only; otherwise, false.
int32_t IndexOf(const System::SharedPtr< ExtendedAttribute > &item) const override
Determines the index of the specified item in this collection.
void idx_set(int32_t index, System::SharedPtr< ExtendedAttribute > value) override
Sets the element at the specified index.
typename iterator_holder_type::iterator iterator
Iterator type.
Definition: ExtendedAttributeCollection.h:108
typename iterator_holder_type::const_iterator const_iterator
Const iterator type.
Definition: ExtendedAttributeCollection.h:110
typename iterator_holder_type::virtualized_iterator virtualized_iterator
Virtualized type.
Definition: ExtendedAttributeCollection.h:114
void RemoveAt(int32_t index) override
Removes an item at the specified index.
System::SharedPtr< ExtendedAttribute > idx_get(int32_t index) const override
Gets the element at the specified index.
int32_t get_Count() const override
Gets the number of elements contained in this collection.
void Clear() override
Removes all items from this collection.
void CopyTo(System::ArrayPtr< System::SharedPtr< ExtendedAttribute >> array, int32_t arrayIndex) override
Copies the elements of this collection to the specified array, starting at the specified array index.
bool Remove(const System::SharedPtr< ExtendedAttribute > &item) override
Removes the first occurrence of a specific object from this collection.
typename iterator_holder_type::virtualized_iterator_element virtualized_iterator_element
Virtualized element type.
Definition: ExtendedAttributeCollection.h:112
bool Contains(const System::SharedPtr< ExtendedAttribute > &item) const override
Returns true if the specified item is found in this collection; otherwise, false.
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
Represents extended attributes.
Definition: ExtendedAttribute.h:138
Represents a resource assignment in a project.
Definition: ResourceAssignment.h:222
Represents a resource in a project.
Definition: Resource.h:207
Represents a task in a project.
Definition: Task.h:384