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

Represents a collection of Baseline objects. More...

#include <BaselineCollection.h>

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

Public Types

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

Member Function Documentation

void Aspose::Tasks::BaselineCollection::Add ( const System::SharedPtr< Baseline > &  item)
override

This is the stub implementation of ICollection's Add method, that only throws NotSupportedException

Parameters
itemThe item to remove.
iterator Aspose::Tasks::BaselineCollection::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
const_iterator Aspose::Tasks::BaselineCollection::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
const_iterator Aspose::Tasks::BaselineCollection::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
const_iterator Aspose::Tasks::BaselineCollection::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
iterator Aspose::Tasks::BaselineCollection::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
const_iterator Aspose::Tasks::BaselineCollection::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
int32_t Aspose::Tasks::BaselineCollection::get_Count ( ) const
override

Gets the number of objects contained in this BaselineCollection object.

System::SharedPtr<Resource> Aspose::Tasks::BaselineCollection::get_ParentResource ( ) const

Gets the parent Resource for this collection.

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Baseline> > > Aspose::Tasks::BaselineCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.
System::SharedPtr<Baseline> Aspose::Tasks::BaselineCollection::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.
void Aspose::Tasks::BaselineCollection::idx_set ( int32_t  index,
System::SharedPtr< Baseline 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.
bool Aspose::Tasks::BaselineCollection::Remove ( const System::SharedPtr< Baseline > &  item)
override

Removes baseline from this collection.

Parameters
itemThe item to remove.
Returns
true if Baseline instance has been removed successfully; otherwise, false
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Baseline> > > Aspose::Tasks::BaselineCollection::ToList ( )

Converts the BaselineCollection object to a list of Baseline objects.

Returns
List of Baseline objects.
virtualized_iterator* Aspose::Tasks::BaselineCollection::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.
virtualized_iterator* Aspose::Tasks::BaselineCollection::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.
virtualized_iterator* Aspose::Tasks::BaselineCollection::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.
virtualized_iterator* Aspose::Tasks::BaselineCollection::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.