Aspose.Tasks for C++
|
Represents a collection of ResourceAssignment objects. More...
#include <ResourceAssignmentCollection.h>
Inherits System::Collections::Generic::IList< typename >.
Public Member Functions | |
System::SharedPtr< Project > | get_ParentProject () const |
Gets the parent project of the ResourceAssignmentCollection object. More... | |
bool | get_IsReadOnly () const override |
Gets a value indicating whether this collection is read only. More... | |
int32_t | get_Count () const override |
Gets the number of objects contained in the ResourceAssignmentCollection. More... | |
System::SharedPtr< ResourceAssignment > | idx_get (int32_t index) const override |
Returns the element at the specified index. More... | |
void | idx_set (int32_t index, System::SharedPtr< ResourceAssignment > value) override |
Returns the element at the specified index. More... | |
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< ResourceAssignment > > > | GetEnumerator () override |
Returns an enumerator for this collection. More... | |
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< ResourceAssignment > > > | ToList () |
Converts the ResourceAssignmentCollection object to a list of ResourceAssignment objects. More... | |
System::SharedPtr< ResourceAssignment > | Add (const System::SharedPtr< Task > &task, const System::SharedPtr< Resource > &resource, double units) |
Adds new assignment to the ResourceAssignmentCollection. More... | |
System::SharedPtr< ResourceAssignment > | Add (const System::SharedPtr< Task > &task, const System::SharedPtr< Resource > &resource, System::Decimal cost) |
Adds new assignment to the ResourceAssignmentCollection. More... | |
System::SharedPtr< ResourceAssignment > | Add (const System::SharedPtr< Task > &task, const System::SharedPtr< Resource > &resource) |
Adds new assignment to the ResourceAssignmentCollection. More... | |
System::SharedPtr< ResourceAssignment > | GetByUid (int32_t uid) |
Returns an assignment with the specified uid. More... | |
bool | Remove (const System::SharedPtr< ResourceAssignment > &item) override |
Removes specified assignment from collection, if it is not read-only, otherwise throws NotSupportedException. More... | |
void | RemoveAt (int32_t index) override |
Removes assignment at specified index, if collection is not read-only, otherwise throws NotSupportedException. More... | |
void | Add (const System::SharedPtr< ResourceAssignment > &item) override |
This is the stub implementation of ICollection's Add method, that only throws NotSupportedException More... | |
Represents a collection of ResourceAssignment objects.
|
override |
This is the stub implementation of ICollection's Add method, that only throws NotSupportedException
item | The item to remove. |
System::SharedPtr<ResourceAssignment> Aspose::Tasks::ResourceAssignmentCollection::Add | ( | const System::SharedPtr< Task > & | task, |
const System::SharedPtr< Resource > & | resource | ||
) |
Adds new assignment to the ResourceAssignmentCollection.
task | A task to be assigned. |
resource | A resource to be assigned. |
System::SharedPtr<ResourceAssignment> Aspose::Tasks::ResourceAssignmentCollection::Add | ( | const System::SharedPtr< Task > & | task, |
const System::SharedPtr< Resource > & | resource, | ||
double | units | ||
) |
Adds new assignment to the ResourceAssignmentCollection.
task | A task to be assigned. |
resource | A resource to be assigned. |
units | The number of units for a new assignment. |
System::SharedPtr<ResourceAssignment> Aspose::Tasks::ResourceAssignmentCollection::Add | ( | const System::SharedPtr< Task > & | task, |
const System::SharedPtr< Resource > & | resource, | ||
System::Decimal | cost | ||
) |
Adds new assignment to the ResourceAssignmentCollection.
task | A task to be assigned. |
resource | A cost resource to be assigned. |
cost | The cost for a new assignment. |
|
override |
Gets the number of objects contained in the ResourceAssignmentCollection.
|
override |
Gets a value indicating whether this collection is read only.
System::SharedPtr<Project> Aspose::Tasks::ResourceAssignmentCollection::get_ParentProject | ( | ) | const |
Gets the parent project of the ResourceAssignmentCollection object.
System::SharedPtr<ResourceAssignment> Aspose::Tasks::ResourceAssignmentCollection::GetByUid | ( | int32_t | uid | ) |
Returns an assignment with the specified uid.
uid | The specified uid. |
O(1) complexity.
|
override |
Returns an enumerator for this collection.
|
override |
Returns the element at the specified index.
index | The zero-based index of the element to get. |
|
override |
Returns the element at the specified index.
index | The zero-based index of the element to get. |
value | the element at the specified index. |
|
override |
Removes specified assignment from collection, if it is not read-only, otherwise throws NotSupportedException.
item | The assignment to remove. |
|
override |
Removes assignment at specified index, if collection is not read-only, otherwise throws NotSupportedException.
index | Zero-based index. |
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<ResourceAssignment> > > Aspose::Tasks::ResourceAssignmentCollection::ToList | ( | ) |
Converts the ResourceAssignmentCollection object to a list of ResourceAssignment objects.