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;
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();
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);
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;
Represents a collection of Baseline objects.
Definition: BaselineCollection.h:100
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
bool Remove(const System::SharedPtr< Baseline > &item) override
Removes baseline from this collection.
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Baseline > > > ToList()
Converts the BaselineCollection object to a list of Baseline objects.
void Add(const System::SharedPtr< Baseline > &item) override
This is the stub implementation of ICollection's Add method, that only throws NotSupportedException
System::SharedPtr< Baseline > idx_get(int32_t index) const override
Returns the element at the specified index.
iterator begin() noexcept
typename iterator_holder_type::iterator iterator
Iterator type.
Definition: BaselineCollection.h:130
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Baseline > > > GetEnumerator() override
Returns an enumerator for this collection.
System::SharedPtr< Resource > get_ParentResource() const
Gets the parent Resource for this collection.
int32_t get_Count() const override
Gets the number of objects contained in this BaselineCollection object.
typename iterator_holder_type::virtualized_iterator_element virtualized_iterator_element
Virtualized element type.
Definition: BaselineCollection.h:134
typename iterator_holder_type::virtualized_iterator virtualized_iterator
Virtualized type.
Definition: BaselineCollection.h:136
void idx_set(int32_t index, System::SharedPtr< Baseline > value) override
Returns the element at the specified index.
typename iterator_holder_type::const_iterator const_iterator
Const iterator type.
Definition: BaselineCollection.h:132
Represents baseline values of a resource.
Definition: Baseline.h:53
Represents a resource in a project.
Definition: Resource.h:207