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

Represents a collection of WorkingTimeCollection objects. More...

#include <WorkingTimeCollection.h>

Inherits System::Collections::Generic::IList< typename >, and Aspose::Tasks::IReadOnlyWorkingTimeCollection.

Public Types

using iterator_holder_type = System::Collections::Generic::List< System::SharedPtr< WorkingTime > >
 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 WorkingTimeCollection object. More...
 
System::SharedPtr< WorkingTimeidx_get (int32_t index) const override
 Returns the element at the specified index. More...
 
void idx_set (int32_t index, System::SharedPtr< WorkingTime > value) override
 Returns the element at the specified index. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< WorkingTime > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
bool Remove (const System::SharedPtr< WorkingTime > &item) override
 Removes WorkingTime instance from this collection. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< WorkingTime > > > ToList ()
 Converts the WorkingTimeCollection object to a list of WorkingTime objects. More...
 
bool Contains (const System::SharedPtr< WorkingTime > &item) const override
 Checks if the specified element is in the List. Performs a linear O(n) search. More...
 
void CopyTo (System::ArrayPtr< System::SharedPtr< WorkingTime >> array, int32_t arrayIndex) override
 copies a collection content into an Array, starting at a particular index More...
 
void Clear () override
 Removes all WorkingTime items from collection. 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 WorkingTimeCollection objects.

Member Function Documentation

◆ begin() [1/2]

const_iterator Aspose::Tasks::WorkingTimeCollection::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::WorkingTimeCollection::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::WorkingTimeCollection::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::WorkingTimeCollection::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

◆ Clear()

void Aspose::Tasks::WorkingTimeCollection::Clear ( )
override

Removes all WorkingTime items from collection.

◆ Contains()

bool Aspose::Tasks::WorkingTimeCollection::Contains ( const System::SharedPtr< WorkingTime > &  item) const
override

Checks if the specified element is in the List. Performs a linear O(n) search.

Parameters
itemthe specified item.
Returns
True, if specified element found in the list, false otherwise.

◆ CopyTo()

void Aspose::Tasks::WorkingTimeCollection::CopyTo ( System::ArrayPtr< System::SharedPtr< WorkingTime >>  array,
int32_t  arrayIndex 
)
override

copies a collection content into an Array, starting at a particular index

Parameters
arrayan array to copy to.
arrayIndexstarting array index

◆ end() [1/2]

const_iterator Aspose::Tasks::WorkingTimeCollection::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::WorkingTimeCollection::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::WorkingTimeCollection::get_Count ( ) const
override

Gets the number of objects contained in this WorkingTimeCollection object.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<WorkingTime> > > Aspose::Tasks::WorkingTimeCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ idx_get()

System::SharedPtr<WorkingTime> Aspose::Tasks::WorkingTimeCollection::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::WorkingTimeCollection::idx_set ( int32_t  index,
System::SharedPtr< WorkingTime 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::WorkingTimeCollection::Remove ( const System::SharedPtr< WorkingTime > &  item)
override

Removes WorkingTime instance from this collection.

Parameters
itemThe item to remove.
Returns
true if WorkingTime instance was successfully removed from this collection; otherwise, false.

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<WorkingTime> > > Aspose::Tasks::WorkingTimeCollection::ToList ( )

Converts the WorkingTimeCollection object to a list of WorkingTime objects.

Returns
List of WorkingTime objects.

◆ virtualizeBeginConstIterator()

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