8 #include <system/collections/icollection.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
18 namespace RiskAnalysis
20 class RiskAnalysisSettings;
32 template <
typename,
typename>
class IDictionary;
33 template <
typename>
class IEnumerator;
42 namespace RiskAnalysis {
47 class ASPOSE_TASKS_SHARED_CLASS
RiskPatternCollection :
public System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::RiskAnalysis::RiskPattern>>
50 typedef System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::RiskAnalysis::RiskPattern>> BaseType;
52 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
53 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
62 ASPOSE_TASKS_SHARED_API int32_t
get_Count()
const override;
73 ASPOSE_TASKS_SHARED_API System::SharedPtr<RiskPattern>
idx_get(
const System::SharedPtr<Task>& task);
80 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<RiskPattern>& item)
override;
84 ASPOSE_TASKS_SHARED_API
void Clear()
override;
90 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<RiskPattern>& item)
const override;
96 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<RiskPattern>> array, int32_t arrayIndex)
override;
102 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<RiskPattern>& item)
override;
107 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<RiskPattern>>>
GetEnumerator()
override;
116 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
RiskPatternCollection, CODEPORTING_ARGS());
121 ASPOSE_TASKS_SHARED_API
RiskPatternCollection(
const System::SharedPtr<System::Collections::Generic::IDictionary<System::SharedPtr<Task>, System::SharedPtr<RiskPattern>>>& patterns);
123 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
RiskPatternCollection, CODEPORTING_ARGS(
const System::SharedPtr<System::Collections::Generic::IDictionary<System::SharedPtr<Task>, System::SharedPtr<RiskPattern>>>& patterns));
127 #ifdef ASPOSE_GET_SHARED_MEMBERS
128 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
134 System::SharedPtr<System::Collections::Generic::IDictionary<System::SharedPtr<Task>, System::SharedPtr<RiskPattern>>> patterns;
Specifies settings for performing risk analysis.
Definition: RiskAnalysisSettings.h:40
Represents a collection containing the instances of the RiskPattern class.
Definition: RiskPatternCollection.h:48
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< RiskPattern > > > GetEnumerator() override
Returns an enumerator for this collection.
void Clear() override
Removes all items from this collection.
void CopyTo(System::ArrayPtr< System::SharedPtr< RiskPattern >> array, int32_t arrayIndex) override
Copies the elements of this collection to the specified array, starting at the specified array index.
bool get_IsReadOnly() const override
Gets a value indicating whether this collection is read-only; otherwise, false.
int32_t get_Count() const override
Gets the number of elements contained in this collection.
bool Remove(const System::SharedPtr< RiskPattern > &item) override
Removes the first occurrence of a specific object from this collection.
System::SharedPtr< RiskPattern > idx_get(const System::SharedPtr< Task > &task)
Gets the instance of the RiskPattern class for the specified task.
bool Contains(const System::SharedPtr< RiskPattern > &item) const override
Returns true if the specified item is found in this collection; otherwise, false.
void Add(const System::SharedPtr< RiskPattern > &item) override
Adds an instance of the RiskPattern class to this collection.