8 #include <system/collections/icollection.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
31 class TemplateProjectLoader;
41 template <
typename>
class IEnumerator;
42 template <
typename>
class List;
43 template <
typename,
typename>
class SortedList;
56 class ASPOSE_TASKS_SHARED_CLASS
GroupCollection :
public System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::Group>>
59 typedef System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::Group>> BaseType;
61 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
62 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
64 friend class Aspose::Tasks::IO::MSProject::MppGroupWriter;
66 friend class Aspose::Tasks::Saving::TemplateProjectLoader;
67 friend class Aspose::Tasks::IO::MSProject::MPPReader;
68 friend class Aspose::Tasks::IO::MSProject::MppViewWriter;
75 ASPOSE_TASKS_SHARED_API int32_t get_Count()
const override;
79 ASPOSE_TASKS_SHARED_API
bool get_IsReadOnly()
const override;
85 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Group>>> GetEnumerator()
override;
90 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<Group>& item)
override;
94 ASPOSE_TASKS_SHARED_API
void Clear()
override;
100 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<Group>& item)
const override;
106 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<Group>> array, int32_t arrayIndex)
override;
112 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<Group>& item)
override;
117 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Group>>> ToList();
126 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
GroupCollection, CODEPORTING_ARGS());
127 ASPOSE_TASKS_SHARED_API
void AddInternal(
const System::SharedPtr<Group>& item);
128 ASPOSE_TASKS_SHARED_API System::SharedPtr<Group> GetByName(
const System::String& groupName);
129 ASPOSE_TASKS_SHARED_API System::SharedPtr<Group> GetFirstOrDefault();
130 ASPOSE_TASKS_SHARED_API
void RebuildIndex();
134 #ifdef ASPOSE_GET_SHARED_MEMBERS
135 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
141 System::SharedPtr<System::Collections::Generic::SortedList<int32_t, System::SharedPtr<Group>>> groups;
Represents a project.
Definition: Project.h:550
Contains a list of Group objects. Implements ICollection<Group> interface.
Definition: GroupCollection.h:56