8 #include <system/collections/ilist.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
18 class AvailabilityPeriod;
19 namespace Calculations
21 class ResourceOverAllocationCalculator;
27 class ResourceNodeReader;
39 template <
typename>
class IEnumerator;
52 class ASPOSE_TASKS_SHARED_CLASS
AvailabilityPeriodCollection :
public System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::AvailabilityPeriod>>
55 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::AvailabilityPeriod>> BaseType;
57 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
58 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
60 friend class Aspose::Tasks::Calculations::ResourceOverAllocationCalculator;
62 friend class Aspose::Tasks::IO::Xml::ResourceNodeReader;
74 ASPOSE_TASKS_SHARED_API int32_t
get_Count()
const override;
85 ASPOSE_TASKS_SHARED_API System::SharedPtr<AvailabilityPeriod>
idx_get(int32_t index)
const override;
91 ASPOSE_TASKS_SHARED_API
void idx_set(int32_t index, System::SharedPtr<AvailabilityPeriod> value)
override;
97 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<AvailabilityPeriod>>>
GetEnumerator()
override;
102 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<AvailabilityPeriod>& item)
override;
106 ASPOSE_TASKS_SHARED_API
void Clear()
override;
112 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<AvailabilityPeriod>& item)
const override;
118 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<AvailabilityPeriod>> array, int32_t arrayIndex)
override;
124 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<AvailabilityPeriod>& item)
override;
130 ASPOSE_TASKS_SHARED_API int32_t
IndexOf(
const System::SharedPtr<AvailabilityPeriod>& item)
const override;
136 ASPOSE_TASKS_SHARED_API
void Insert(int32_t index,
const System::SharedPtr<AvailabilityPeriod>& item)
override;
141 ASPOSE_TASKS_SHARED_API
void RemoveAt(int32_t index)
override;
147 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
AvailabilityPeriodCollection, CODEPORTING_ARGS(
const System::SharedPtr<Resource>& parentRsc));
149 ASPOSE_TASKS_SHARED_API
AvailabilityPeriodCollection(
const System::SharedPtr<Resource>& parentRsc,
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<AvailabilityPeriod>>>& periods);
151 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
AvailabilityPeriodCollection, CODEPORTING_ARGS(
const System::SharedPtr<Resource>& parentRsc,
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<AvailabilityPeriod>>>& periods));
152 ASPOSE_TASKS_SHARED_API
double GetMinAvailability(System::DateTime intervalStart, System::DateTime intervalEnd);
156 #ifdef ASPOSE_GET_SHARED_MEMBERS
157 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
163 System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<AvailabilityPeriod>>> periods;
164 System::WeakPtr<Resource> resource;
Represents a collection which contains AvailabilityPeriod objects.
Definition: AvailabilityPeriodCollection.h:53
void Add(const System::SharedPtr< AvailabilityPeriod > &item) override
Adds the specified item to this collection.
void RemoveAt(int32_t index) override
Removes an item at the specified index.
void Clear() override
Removes all items from this collection.
bool Contains(const System::SharedPtr< AvailabilityPeriod > &item) const override
Returns true if the specified item is found in this collection; otherwise, false.
int32_t IndexOf(const System::SharedPtr< AvailabilityPeriod > &item) const override
Determines the index of the specified item in this collection.
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< AvailabilityPeriod > > > GetEnumerator() override
Returns an enumerator for this collection.
bool get_IsReadOnly() const override
Gets a value indicating whether this collection is read-only; otherwise, false.
void CopyTo(System::ArrayPtr< System::SharedPtr< AvailabilityPeriod >> array, int32_t arrayIndex) override
Copies the elements of this collection to the specified array, starting at the specified array index.
void Insert(int32_t index, const System::SharedPtr< AvailabilityPeriod > &item) override
Inserts the specified item at the specified index.
int32_t get_Count() const override
Gets the number of elements contained in this collection.
System::SharedPtr< AvailabilityPeriod > idx_get(int32_t index) const override
Returns the element at the specified index.
void idx_set(int32_t index, System::SharedPtr< AvailabilityPeriod > value) override
Sets the element at the specified index.
bool Remove(const System::SharedPtr< AvailabilityPeriod > &item) override
Removes the first occurrence of a specific object from this collection.
System::SharedPtr< Resource > get_ParentResource() const
Gets the parent Resource for this object. Parent Resource object for this collection.
Represents a resource in a project.
Definition: Resource.h:206