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

Represents a collection of TimephasedData objects. More...

#include <TimephasedDataCollection.h>

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

Public Member Functions

int32_t get_Count () const override
 Gets the number of objects contained in this TimephasedDataCollection object. More...
 
bool get_IsReadOnly () const override
 Gets a value indicating whether the System::Collections::Generic::ICollection<T> is read-only. More...
 
 TimephasedDataCollection ()
 Initializes a new instance of the TimephasedDataCollection class. More...
 
System::SharedPtr< TimephasedDataidx_get (int32_t index) const override
 Returns the element at the specified index. The set accessor is not supported. property to set timephased data. More...
 
void idx_set (int32_t index, System::SharedPtr< TimephasedData > value) override
 Returns the element at the specified index. The set accessor is not supported. property to set timephased data. More...
 
void Clear () override
 Removes all items from the TimephasedDataCollection. More...
 
bool Contains (const System::SharedPtr< TimephasedData > &item) const override
 Determines whether the TimephasedDataCollection contains a specific value. More...
 
void Add (const System::SharedPtr< TimephasedData > &item) override
 Adds TimephasedData instance to this collection object. More...
 
void AddRange (const System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< TimephasedData >>> &timephasedCollection)
 Adds a collection of TimephasedData instances to this collection object. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< TimephasedData > > > ToList ()
 Converts the TimephasedDataCollection object to a list of TimephasedData objects. More...
 
void CopyTo (System::ArrayPtr< System::SharedPtr< TimephasedData >> array, int32_t arrayIndex) override
 Copies the elements of the TimephasedDataCollection to an System::Array, starting at a particular System::Array index. More...
 
bool Remove (const System::SharedPtr< TimephasedData > &item) override
 Removes TimephasedData instance from this collection object. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< TimephasedData > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< TimephasedData > > > SelectBetweenStartAndFinish (TimephasedDataType timephasedDataType, System::DateTime startTime, System::DateTime finishTime)
 Selects all time phases between startTime and finishTime . Has O(log n) complexity in average case. More...
 

Detailed Description

Represents a collection of TimephasedData objects.

Constructor & Destructor Documentation

◆ TimephasedDataCollection()

Aspose::Tasks::TimephasedDataCollection::TimephasedDataCollection ( )

Initializes a new instance of the TimephasedDataCollection class.

Member Function Documentation

◆ Add()

void Aspose::Tasks::TimephasedDataCollection::Add ( const System::SharedPtr< TimephasedData > &  item)
override

Adds TimephasedData instance to this collection object.

Parameters
itemThe item to add.
Exceptions
ArgumentNullExceptionif parameter td is null.

◆ AddRange()

void Aspose::Tasks::TimephasedDataCollection::AddRange ( const System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< TimephasedData >>> &  timephasedCollection)

Adds a collection of TimephasedData instances to this collection object.

Parameters
timephasedCollectionA collection of TimephasedData objects to add.

◆ Clear()

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

Removes all items from the TimephasedDataCollection.

◆ Contains()

bool Aspose::Tasks::TimephasedDataCollection::Contains ( const System::SharedPtr< TimephasedData > &  item) const
override

Determines whether the TimephasedDataCollection contains a specific value.

Returns
true if item is found in the collection; otherwise, false.
Parameters
itemThe object to locate in the collection.

◆ CopyTo()

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

Copies the elements of the TimephasedDataCollection to an System::Array, starting at a particular System::Array index.

Parameters
arrayThe one-dimensional System::Array that is the destination of the elements copied from TimephasedDataCollection. The System::Array must have zero-based indexing.
arrayIndexThe zero-based index in array at which copying begins.
Exceptions
System::ArgumentNullExceptionarray is null.
System::ArgumentOutOfRangeExceptionarrayIndex is less than 0.
System::ArgumentExceptionThe number of elements in the source TimephasedDataCollection is greater than the available space from arrayIndex to the end of the destination array .

◆ get_Count()

int32_t Aspose::Tasks::TimephasedDataCollection::get_Count ( ) const
override

Gets the number of objects contained in this TimephasedDataCollection object.

◆ get_IsReadOnly()

bool Aspose::Tasks::TimephasedDataCollection::get_IsReadOnly ( ) const
override

Gets a value indicating whether the System::Collections::Generic::ICollection<T> is read-only.

Returns
true if the System::Collections::Generic::ICollection<T> is read-only; otherwise, false.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<TimephasedData> > > Aspose::Tasks::TimephasedDataCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ idx_get()

System::SharedPtr<TimephasedData> Aspose::Tasks::TimephasedDataCollection::idx_get ( int32_t  index) const
override

Returns the element at the specified index. The set accessor is not supported. property to set timephased data.

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

◆ idx_set()

void Aspose::Tasks::TimephasedDataCollection::idx_set ( int32_t  index,
System::SharedPtr< TimephasedData value 
)
override

Returns the element at the specified index. The set accessor is not supported. property to set timephased data.

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

◆ Remove()

bool Aspose::Tasks::TimephasedDataCollection::Remove ( const System::SharedPtr< TimephasedData > &  item)
override

Removes TimephasedData instance from this collection object.

Parameters
itemThe item to remove.
Returns
true if item was successfully removed from the TimephasedDataCollection; otherwise, false. This method also returns false if item is not found in the TimephasedDataCollection.

◆ SelectBetweenStartAndFinish()

System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<TimephasedData> > > Aspose::Tasks::TimephasedDataCollection::SelectBetweenStartAndFinish ( TimephasedDataType  timephasedDataType,
System::DateTime  startTime,
System::DateTime  finishTime 
)

Selects all time phases between startTime and finishTime . Has O(log n) complexity in average case.

Parameters
timephasedDataTypeType of time phases to select.
startTimeInterval's start.
finishTimeInterval's finish.
Returns
Returns new list instance of TimephasedDataCollection data ordered by Start property.

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TimephasedData> > > Aspose::Tasks::TimephasedDataCollection::ToList ( )

Converts the TimephasedDataCollection object to a list of TimephasedData objects.

Returns
List of TimephasedData objects.