Aspose.Tasks for C++
|
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< TimephasedData > | 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. 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... | |
Represents a collection of TimephasedData objects.
Aspose::Tasks::TimephasedDataCollection::TimephasedDataCollection | ( | ) |
Initializes a new instance of the TimephasedDataCollection class.
|
override |
Adds TimephasedData instance to this collection object.
item | The item to add. |
ArgumentNullException | if parameter td is null. |
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.
timephasedCollection | A collection of TimephasedData objects to add. |
|
override |
Removes all items from the TimephasedDataCollection.
|
override |
Determines whether the TimephasedDataCollection contains a specific value.
item | The object to locate in the collection. |
|
override |
Copies the elements of the TimephasedDataCollection to an System::Array, starting at a particular System::Array index.
array | The one-dimensional System::Array that is the destination of the elements copied from TimephasedDataCollection. The System::Array must have zero-based indexing. |
arrayIndex | The zero-based index in array at which copying begins. |
System::ArgumentNullException | array is null. |
System::ArgumentOutOfRangeException | arrayIndex is less than 0. |
System::ArgumentException | The number of elements in the source TimephasedDataCollection is greater than the available space from arrayIndex to the end of the destination array . |
|
override |
Gets the number of objects contained in this TimephasedDataCollection object.
|
override |
Gets a value indicating whether the System::Collections::Generic::ICollection<T> is read-only.
|
override |
Returns an enumerator for this collection.
|
override |
Returns the element at the specified index. The set accessor is not supported. property to set timephased data.
index | The zero-based index of the element to get. |
|
override |
Returns the element at the specified index. The set accessor is not supported. property to set timephased data.
index | The zero-based index of the element to get. |
value | the element at the specified index. |
|
override |
Removes TimephasedData instance from this collection object.
item | The item to remove. |
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.
timephasedDataType | Type of time phases to select. |
startTime | Interval's start. |
finishTime | Interval's finish. |
System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TimephasedData> > > Aspose::Tasks::TimephasedDataCollection::ToList | ( | ) |
Converts the TimephasedDataCollection object to a list of TimephasedData objects.