8 #include <system/collections/list.h>
9 #include <system/collections/ilist.h>
10 #include <system/array.h>
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
20 enum class BaselineType;
21 namespace Calculations
23 class ResourceCostCalculator;
24 class ResourceWorkCalculator;
26 namespace Connectivity
28 class MpdResourceBaselineMapper;
29 class MpdResourceMapper;
36 class HtmlResourceBaseLineTableReader;
40 class MPPResourceReader;
41 class MPPResourceWriter;
49 class ProjectResourcesMapper;
55 class ResourceNodeReader;
67 class RscFieldToValue;
70 namespace Visualization
72 class ApsReportBuilder;
73 class ApsReportCostOverrunsBuilder;
74 class ApsReportResourceCostOverviewBuilder;
75 class ApsReportRscOverviewBuilder;
76 class ResourceToColumnText;
86 template <
typename>
class IEnumerable;
87 template <
typename>
class IEnumerator;
99 class ASPOSE_TASKS_SHARED_CLASS
BaselineCollection :
public System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::Baseline>>
102 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::Baseline>> BaseType;
104 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
105 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
107 friend class Aspose::Tasks::Calculations::ResourceCostCalculator;
108 friend class Aspose::Tasks::Calculations::ResourceWorkCalculator;
110 friend class Aspose::Tasks::EVCalculator;
111 friend class Aspose::Tasks::Connectivity::MpdResourceBaselineMapper;
112 friend class Aspose::Tasks::Connectivity::MpdResourceMapper;
113 friend class Aspose::Tasks::IO::Html::HtmlResourceBaseLineTableReader;
114 friend class Aspose::Tasks::IO::MSProject::MPPResourceReader;
115 friend class Aspose::Tasks::IO::MSProject::MPPResourceWriter;
116 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ProjectResourcesMapper;
117 friend class Aspose::Tasks::IO::Xml::ResourceNodeReader;
118 friend class Aspose::Tasks::Visualization::ApsReportBuilder;
119 friend class Aspose::Tasks::Saving::TemplateWriter;
120 friend class Aspose::Tasks::Util::Fields::RscFieldToValue;
121 friend class Aspose::Tasks::Visualization::ApsReportCostOverrunsBuilder;
122 friend class Aspose::Tasks::Visualization::ApsReportResourceCostOverviewBuilder;
123 friend class Aspose::Tasks::Visualization::ApsReportRscOverviewBuilder;
124 friend class Aspose::Tasks::Visualization::ResourceToColumnText;
130 using iterator =
typename iterator_holder_type::iterator;
143 ASPOSE_TASKS_SHARED_API System::SharedPtr<Resource> get_ParentResource()
const;
147 ASPOSE_TASKS_SHARED_API int32_t get_Count()
const override;
154 ASPOSE_TASKS_SHARED_API System::SharedPtr<Baseline> idx_get(int32_t index)
const override;
160 ASPOSE_TASKS_SHARED_API
void idx_set(int32_t index, System::SharedPtr<Baseline> value)
override;
166 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Baseline>>> GetEnumerator()
override;
171 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<Baseline>& item)
override;
177 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<Baseline>& item)
override;
182 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Baseline>>> ToList();
185 ASPOSE_TASKS_SHARED_API
iterator begin() noexcept;
188 ASPOSE_TASKS_SHARED_API
iterator end() noexcept;
226 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
BaselineCollection, CODEPORTING_ARGS(const System::SharedPtr<
Resource>& resource));
228 ASPOSE_TASKS_SHARED_API BaselineCollection(const System::SharedPtr<
Resource>& resource, const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<
Baseline>>>& baselines);
230 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(BaselineCollection, CODEPORTING_ARGS(const System::SharedPtr<
Resource>& resource, const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<
Baseline>>>& baselines));
231 ASPOSE_TASKS_SHARED_API
void Sort();
232 ASPOSE_TASKS_SHARED_API System::SharedPtr<
Baseline> GetByType(BaselineType baselineType);
233 ASPOSE_TASKS_SHARED_API
void AddInternal(const System::SharedPtr<
Baseline>& baseline);
235 virtual ASPOSE_TASKS_SHARED_API ~BaselineCollection();
237 #ifdef ASPOSE_GET_SHARED_MEMBERS
238 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
244 System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Baseline>>> baselines;
245 System::WeakPtr<Resource> resource;
247 bool get_IsReadOnly()
const override;
249 void RemoveAt(int32_t index)
override;
250 void Clear()
override;
251 int32_t IndexOf(
const System::SharedPtr<Baseline>& item)
const override;
252 bool Contains(
const System::SharedPtr<Baseline>& item)
const override;
253 void CopyTo(System::ArrayPtr<System::SharedPtr<Baseline>> array, int32_t arrayIndex)
override;
254 void Insert(int32_t index,
const System::SharedPtr<Baseline>& item)
override;
System::Collections::Generic::List< System::SharedPtr< Baseline >> iterator_holder_type
A collection type whose iterator types is used as iterator types in the current collection.
Definition: BaselineCollection.h:128
typename iterator_holder_type::virtualized_iterator_element virtualized_iterator_element
Virtualized element type.
Definition: BaselineCollection.h:134
typename iterator_holder_type::iterator iterator
Iterator type.
Definition: BaselineCollection.h:130
Represents a collection of Baseline objects.
Definition: BaselineCollection.h:99
Represents baseline values of a resource.
Definition: Baseline.h:52
typename iterator_holder_type::virtualized_iterator virtualized_iterator
Virtualized type.
Definition: BaselineCollection.h:136
typename iterator_holder_type::const_iterator const_iterator
Const iterator type.
Definition: BaselineCollection.h:132
Represents a resource in a project.
Definition: Resource.h:206