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

Represents a collection of TaskBaseline objects. More...

#include <TaskBaselineCollection.h>

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

Public Types

using iterator_holder_type = System::Collections::Generic::List< System::SharedPtr< TaskBaseline > >
 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

int32_t get_Count () const override
 Gets the number of objects contained in this TaskBaselineCollection object. More...
 
System::SharedPtr< TaskBaselineidx_get (int32_t index) const override
 Returns the element at the specified index. More...
 
void idx_set (int32_t index, System::SharedPtr< TaskBaseline > value) override
 Returns the element at the specified index. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< TaskBaseline > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
void Add (const System::SharedPtr< TaskBaseline > &item) override
 This is the stub implementation of ICollection's Add method, that only throws NotSupportedException More...
 
bool Remove (const System::SharedPtr< TaskBaseline > &item) override
 Removes baseline from this collection. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< TaskBaseline > > > ToList ()
 Converts the TaskBaselineCollection object to a list of TaskBaseline 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 TaskBaseline objects.

Member Function Documentation

◆ Add()

void Aspose::Tasks::TaskBaselineCollection::Add ( const System::SharedPtr< TaskBaseline > &  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::TaskBaselineCollection::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::TaskBaselineCollection::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::TaskBaselineCollection::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::TaskBaselineCollection::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::TaskBaselineCollection::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::TaskBaselineCollection::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::TaskBaselineCollection::get_Count ( ) const
override

Gets the number of objects contained in this TaskBaselineCollection object.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<TaskBaseline> > > Aspose::Tasks::TaskBaselineCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ idx_get()

System::SharedPtr<TaskBaseline> Aspose::Tasks::TaskBaselineCollection::idx_get ( int32_t  index) const
override

Returns the element at the specified index.

Parameters
indexThe zero-based index of the element to get.
Returns
the element at the specified index.

◆ idx_set()

void Aspose::Tasks::TaskBaselineCollection::idx_set ( int32_t  index,
System::SharedPtr< TaskBaseline value 
)
override

Returns the element at the specified index.

Parameters
indexThe zero-based index of the element to get.
valuethe element at the specified index.

◆ Remove()

bool Aspose::Tasks::TaskBaselineCollection::Remove ( const System::SharedPtr< TaskBaseline > &  item)
override

Removes baseline from this collection.

Parameters
itemThe item to remove.
Returns
true if the item has been removed successfully; otherwise, false

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TaskBaseline> > > Aspose::Tasks::TaskBaselineCollection::ToList ( )

Converts the TaskBaselineCollection object to a list of TaskBaseline objects.

Returns
List of TaskBaseline objects.

◆ virtualizeBeginConstIterator()

virtualized_iterator* Aspose::Tasks::TaskBaselineCollection::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::TaskBaselineCollection::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::TaskBaselineCollection::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::TaskBaselineCollection::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.