Represents a collection of Task objects.
More...
#include <TaskLinkCollection.h>
Inherits System::Collections::Generic::IList< typename >.
|
using | iterator_holder_type = System::Collections::Generic::List< System::SharedPtr< TaskLink > > |
| A collection type whose iterator types is used as iterator types in the current collection.
|
|
using | iterator = typename iterator_holder_type::iterator |
| Iterator type.
|
|
using | const_iterator = typename iterator_holder_type::const_iterator |
| Const iterator type.
|
|
using | virtualized_iterator_element = typename iterator_holder_type::virtualized_iterator_element |
| Virtualized element type.
|
|
using | virtualized_iterator = typename iterator_holder_type::virtualized_iterator |
| Virtualized type.
|
|
Represents a collection of Task objects.
◆ Add() [1/4]
System::SharedPtr<TaskLink> Aspose::Tasks::TaskLinkCollection::Add |
( |
const System::SharedPtr< Task > & |
pred, |
|
|
const System::SharedPtr< Task > & |
succ |
|
) |
| |
Returns an instance of Finish-Start TaskLink which has been added to the TaskLinkCollection object.
- Parameters
-
pred | Predecessor task. |
succ | Successor task. |
- Returns
- a task link instance which has been added to this object.
- Exceptions
-
◆ Add() [2/4]
System::SharedPtr<TaskLink> Aspose::Tasks::TaskLinkCollection::Add |
( |
const System::SharedPtr< Task > & |
pred, |
|
|
const System::SharedPtr< Task > & |
succ, |
|
|
TaskLinkType |
linkType |
|
) |
| |
Returns an instance of TaskLink which has been added to the TaskLinkCollection object.
- Parameters
-
pred | Predecessor task. |
succ | Successor task. |
linkType | Link type TaskLinkType |
- Returns
- a task link instance which has been added to this object.
- Exceptions
-
◆ Add() [3/4]
System::SharedPtr<TaskLink> Aspose::Tasks::TaskLinkCollection::Add |
( |
const System::SharedPtr< Task > & |
pred, |
|
|
const System::SharedPtr< Task > & |
succ, |
|
|
TaskLinkType |
linkType, |
|
|
Duration |
lag |
|
) |
| |
Returns an instance of TaskLink which has been added to the TaskLinkCollection object.
- Parameters
-
- Returns
- a task link which has been added to this object.
- Exceptions
-
◆ Add() [4/4]
void Aspose::Tasks::TaskLinkCollection::Add |
( |
const System::SharedPtr< TaskLink > & |
item | ) |
|
|
override |
This is the stub implementation of ICollection's Add method, that only throws NotSupportedException
- Parameters
-
◆ begin() [1/2]
Gets iterator pointing to the first element (if any) of the const-qualified instance of the collection.
- Returns
- An iterator pointing to the first element (if any) of the const-qualified instance of the collection
◆ begin() [2/2]
iterator Aspose::Tasks::TaskLinkCollection::begin |
( |
| ) |
|
|
noexcept |
Gets iterator pointing to the first element (if any) of the collection.
- Returns
- An iterator pointing to the first element (if any) of the collection
◆ cbegin()
Gets iterator pointing to the first const-qualified element (if any) of the collection.
- Returns
- An iterator pointing to the first const-qualified element (if any) of the collection
◆ cend()
Gets iterator pointing right after the last const-qualified element (if any) of the collection.
- Returns
- An iterator pointing right after the last const-qualified element (if any) of the collection
◆ end() [1/2]
Gets iterator pointing right after the last element (if any) of the const-qualified instance of the collection.
- Returns
- An iterator pointing right after the last element (if any) of the const-qualified instance of the collection
◆ end() [2/2]
iterator Aspose::Tasks::TaskLinkCollection::end |
( |
| ) |
|
|
noexcept |
Gets iterator pointing right after the last element (if any) of the collection.
- Returns
- An iterator pointing right after the last element (if any) of the collection
◆ get_Count()
int32_t Aspose::Tasks::TaskLinkCollection::get_Count |
( |
| ) |
const |
|
override |
◆ get_ParentProject()
System::SharedPtr<Project> Aspose::Tasks::TaskLinkCollection::get_ParentProject |
( |
| ) |
const |
◆ GetEnumerator()
System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<TaskLink> > > Aspose::Tasks::TaskLinkCollection::GetEnumerator |
( |
| ) |
|
|
override |
Returns an enumerator for this collection.
- Returns
- an enumerator for this collection.
◆ idx_get()
System::SharedPtr<TaskLink> Aspose::Tasks::TaskLinkCollection::idx_get |
( |
int32_t |
index | ) |
const |
|
override |
Returns the element at the specified index.
- Parameters
-
index | The zero-based index of the element to get or set. |
- Returns
- the element at the specified index.
◆ idx_set()
void Aspose::Tasks::TaskLinkCollection::idx_set |
( |
int32_t |
index, |
|
|
System::SharedPtr< TaskLink > |
value |
|
) |
| |
|
override |
Sets the element at the specified index.
- Parameters
-
index | The zero-based index of the element to get or set. |
value | the element at the specified index. |
◆ Remove()
bool Aspose::Tasks::TaskLinkCollection::Remove |
( |
const System::SharedPtr< TaskLink > & |
item | ) |
|
|
override |
Removes task link from a project.
- Parameters
-
- Returns
- removed TaskLink.
◆ ToList()
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TaskLink> > > Aspose::Tasks::TaskLinkCollection::ToList |
( |
| ) |
|
◆ virtualizeBeginConstIterator()
Gets iterator pointing to the first element (if any)of the const-qualified instance of the collection.
- Returns
- An iterator pointing to the first element (if any)of the const-qualified instance of the collection Provides const iterator implementation to container's first element.
-
Newly-created iterator object.
◆ virtualizeBeginIterator()
Gets iterator pointing to the first element (if any) of the collection.
- Returns
- An iterator pointing to the first element (if any) of the collection Provides iterator implementation to container's first element.
-
Newly-created iterator object.
◆ virtualizeEndConstIterator()
Gets iterator pointing right after the last element (if any)of the const-qualified instance of the collection.
- Returns
- An iterator pointing right after the last element (if any)of the const-qualified instance of the collection Provides const iterator implementation to container's end.
-
Newly-created iterator object.
◆ virtualizeEndIterator()
Gets iterator pointing right after the last element (if any) of the collection.
- Returns
- An iterator pointing right after the last element (if any) of the collection Provides iterator implementation to container's end.
-
Newly-created iterator object.