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"
19 enum class BaselineType;
20 namespace Calculations
22 class TaskCostCalculator;
23 class TaskVarianceCalculator;
24 class TaskWorkCalculator;
26 namespace Connectivity
28 class MpdTaskBaselineMapper;
30 class MspTaskBaseLineMapper;
37 class HtmlTaskBaseLineTableReader;
41 class MPP14As9TaskReader;
46 class MppBaselineWriter;
55 class ProjectTasksMapper;
75 class TaskFieldToValue;
86 template <
typename>
class IEnumerable;
87 template <
typename>
class IEnumerator;
99 class ASPOSE_TASKS_SHARED_CLASS
TaskBaselineCollection :
public System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::TaskBaseline>>
102 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::TaskBaseline>> BaseType;
104 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
105 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
107 friend class Aspose::Tasks::Calculations::TaskCostCalculator;
108 friend class Aspose::Tasks::Calculations::TaskVarianceCalculator;
109 friend class Aspose::Tasks::Calculations::TaskWorkCalculator;
110 friend class Aspose::Tasks::IO::MSProject::Writers::MppBaselineWriter;
112 friend class Aspose::Tasks::EVCalculator;
113 friend class Aspose::Tasks::Connectivity::MpdTaskBaselineMapper;
114 friend class Aspose::Tasks::Connectivity::MpdTaskMapper;
115 friend class Aspose::Tasks::Connectivity::MspTaskBaseLineMapper;
116 friend class Aspose::Tasks::IO::Html::HtmlTaskBaseLineTableReader;
117 friend class Aspose::Tasks::IO::MSProject::MPPTaskReader;
118 friend class Aspose::Tasks::IO::MSProject::MPP14As9TaskReader;
119 friend class Aspose::Tasks::IO::MSProject::MPP9TaskReader;
120 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ProjectTasksMapper;
121 friend class Aspose::Tasks::IO::Xml::TaskNodeReader;
122 friend class Aspose::Tasks::ProjectState;
123 friend class Aspose::Tasks::Saving::TemplateWriter;
124 friend class Aspose::Tasks::Util::Fields::TaskFieldToValue;
130 using iterator =
typename iterator_holder_type::iterator;
143 ASPOSE_TASKS_SHARED_API int32_t
get_Count()
const override;
150 ASPOSE_TASKS_SHARED_API System::SharedPtr<TaskBaseline>
idx_get(int32_t index)
const override;
156 ASPOSE_TASKS_SHARED_API
void idx_set(int32_t index, System::SharedPtr<TaskBaseline> value)
override;
162 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<TaskBaseline>>>
GetEnumerator()
override;
167 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<TaskBaseline>& item)
override;
173 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<TaskBaseline>& item)
override;
178 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TaskBaseline>>>
ToList();
222 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
TaskBaselineCollection, CODEPORTING_ARGS());
226 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
TaskBaselineCollection, CODEPORTING_ARGS(const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<
TaskBaseline>>>& baselines));
227 ASPOSE_TASKS_SHARED_API
void Sort();
228 ASPOSE_TASKS_SHARED_API
void RemoveByType(BaselineType baselineType);
229 ASPOSE_TASKS_SHARED_API System::SharedPtr<
TaskBaseline> GetByType(BaselineType baselineType);
230 ASPOSE_TASKS_SHARED_API
void AddInternal(const System::SharedPtr<
TaskBaseline>& baseline);
234 #ifdef ASPOSE_GET_SHARED_MEMBERS
235 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
241 System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TaskBaseline>>> baselines;
243 bool get_IsReadOnly()
const override;
245 int32_t IndexOf(
const System::SharedPtr<TaskBaseline>& item)
const override;
246 void Insert(int32_t index,
const System::SharedPtr<TaskBaseline>& item)
override;
247 void RemoveAt(int32_t index)
override;
248 void Clear()
override;
249 bool Contains(
const System::SharedPtr<TaskBaseline>& item)
const override;
250 void CopyTo(System::ArrayPtr<System::SharedPtr<TaskBaseline>> array, int32_t arrayIndex)
override;
Represents a collection of TaskBaseline objects.
Definition: TaskBaselineCollection.h:100
typename iterator_holder_type::virtualized_iterator virtualized_iterator
Virtualized type.
Definition: TaskBaselineCollection.h:136
System::SharedPtr< TaskBaseline > idx_get(int32_t index) const override
Returns the element at the specified index.
iterator begin() noexcept
bool Remove(const System::SharedPtr< TaskBaseline > &item) override
Removes baseline from this collection.
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< TaskBaseline > > > GetEnumerator() override
Returns an enumerator for this collection.
void Add(const System::SharedPtr< TaskBaseline > &item) override
This is the stub implementation of ICollection's Add method, that only throws NotSupportedException
int32_t get_Count() const override
Gets the number of objects contained in this TaskBaselineCollection object.
typename iterator_holder_type::const_iterator const_iterator
Const iterator type.
Definition: TaskBaselineCollection.h:132
void idx_set(int32_t index, System::SharedPtr< TaskBaseline > value) override
Returns the element at the specified index.
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< TaskBaseline > > > ToList()
Converts the TaskBaselineCollection object to a list of TaskBaseline objects.
typename iterator_holder_type::virtualized_iterator_element virtualized_iterator_element
Virtualized element type.
Definition: TaskBaselineCollection.h:134
typename iterator_holder_type::iterator iterator
Iterator type.
Definition: TaskBaselineCollection.h:130
System::Collections::Generic::List< System::SharedPtr< TaskBaseline > > iterator_holder_type
A collection type whose iterator types is used as iterator types in the current collection.
Definition: TaskBaselineCollection.h:128
Represents Baseline of a Task.
Definition: TaskBaseline.h:53
Represents a task in a project.
Definition: Task.h:383