Aspose.Tasks for C++
Aspose::Tasks::TaskLinkCollection Class Reference

Represents a collection of Task objects. More...

#include <TaskLinkCollection.h>

Inherits System::Collections::Generic::IList< typename >.

Public Types

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.
 

Public Member Functions

System::SharedPtr< Projectget_ParentProject () const
 Gets the parent project of the ResourceAssignmentCollection object.
Returns
parent Project for this object.
More...
 
int32_t get_Count () const override
 Gets the number of objects contained in this TaskLinkCollection object. More...
 
System::SharedPtr< TaskLinkidx_get (int32_t index) const override
 Returns the element at the specified index. More...
 
void idx_set (int32_t index, System::SharedPtr< TaskLink > value) override
 Sets the element at the specified index. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< TaskLink > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
System::SharedPtr< TaskLinkAdd (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. More...
 
System::SharedPtr< TaskLinkAdd (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. More...
 
System::SharedPtr< TaskLinkAdd (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. More...
 
void Add (const System::SharedPtr< TaskLink > &item) override
 This is the stub implementation of ICollection's Add method, that only throws NotSupportedException More...
 
bool Remove (const System::SharedPtr< TaskLink > &item) override
 Removes task link from a project. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< TaskLink > > > ToList ()
 Converts the TaskLinkCollection object to a list of TaskLink objects. More...
 
iterator begin () noexcept
 
iterator end () noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
virtualized_iteratorvirtualizeBeginIterator () override
 
virtualized_iteratorvirtualizeEndIterator () override
 
virtualized_iteratorvirtualizeBeginConstIterator () const override
 
virtualized_iteratorvirtualizeEndConstIterator () const override
 

Detailed Description

Represents a collection of Task objects.

Member Function Documentation

◆ 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
predPredecessor task.
succSuccessor task.
Returns
a task link instance which has been added to this object.
Exceptions
ArgumentNullExceptionIf any of input tasks is equal to null then ArgumentNullException will be thrown.

◆ 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
predPredecessor task.
succSuccessor task.
linkTypeLink type TaskLinkType
Returns
a task link instance which has been added to this object.
Exceptions
ArgumentNullExceptionIf any of input tasks is equal to null then ArgumentNullException will be thrown.

◆ 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
predPredecessor task.
succSuccessor task.
linkTypeLink type TaskLinkType
lagLink lag Duration.
Returns
a task link which has been added to this object.
Exceptions
ArgumentNullExceptionIf any of input tasks is equal to null then ArgumentNullException will be thrown.

◆ 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
itemThe item to add.

◆ begin() [1/2]

const_iterator Aspose::Tasks::TaskLinkCollection::begin ( ) const
noexcept

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()

const_iterator Aspose::Tasks::TaskLinkCollection::cbegin ( ) const
noexcept

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()

const_iterator Aspose::Tasks::TaskLinkCollection::cend ( ) const
noexcept

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]

const_iterator Aspose::Tasks::TaskLinkCollection::end ( ) const
noexcept

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

Gets the number of objects contained in this TaskLinkCollection object.

◆ get_ParentProject()

System::SharedPtr<Project> Aspose::Tasks::TaskLinkCollection::get_ParentProject ( ) const

Gets the parent project of the ResourceAssignmentCollection object.

Returns
parent Project for this object.

◆ 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
indexThe 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
indexThe zero-based index of the element to get or set.
valuethe element at the specified index.

◆ Remove()

bool Aspose::Tasks::TaskLinkCollection::Remove ( const System::SharedPtr< TaskLink > &  item)
override

Removes task link from a project.

Parameters
itemTaskLink to remove.
Returns
removed TaskLink.

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TaskLink> > > Aspose::Tasks::TaskLinkCollection::ToList ( )

Converts the TaskLinkCollection object to a list of TaskLink objects.

Returns
List of TaskLink objects.

◆ virtualizeBeginConstIterator()

virtualized_iterator* Aspose::Tasks::TaskLinkCollection::virtualizeBeginConstIterator ( ) const
override

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()

virtualized_iterator* Aspose::Tasks::TaskLinkCollection::virtualizeBeginIterator ( )
override

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()

virtualized_iterator* Aspose::Tasks::TaskLinkCollection::virtualizeEndConstIterator ( ) const
override

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()

virtualized_iterator* Aspose::Tasks::TaskLinkCollection::virtualizeEndIterator ( )
override

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.