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

Represents a collection of ExtendedAttributeDefinition objects. More...

#include <ExtendedAttributeDefinitionCollection.h>

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

Public Types

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

const System::SharedPtr< Project > & get_ParentProject () const
 Gets a parent project for the ExtendedAttributeDefinitionCollection instance.
Returns
returns a parent project for this collection.
More...
 
int32_t get_Count () const override
 Gets the number of elements contained in this collection. More...
 
bool get_IsReadOnly () const override
 Gets a value indicating whether this collection is read-only. More...
 
System::SharedPtr< ExtendedAttributeDefinitionidx_get (int32_t index) const override
 Returns the element at the specified index. More...
 
void idx_set (int32_t index, System::SharedPtr< ExtendedAttributeDefinition > value) override
 Sets the element at the specified index. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< ExtendedAttributeDefinition > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
void Add (const System::SharedPtr< ExtendedAttributeDefinition > &item) override
 Adds the specified item to this collection. More...
 
void Clear () override
 Removes all items from this collection. More...
 
bool Contains (const System::SharedPtr< ExtendedAttributeDefinition > &item) const override
 Returns true if the specified item is found in this collection; otherwise, false. More...
 
void CopyTo (System::ArrayPtr< System::SharedPtr< ExtendedAttributeDefinition >> array, int32_t arrayIndex) override
 Copies the elements of this collection to the specified array, starting at the specified array index. More...
 
bool Remove (const System::SharedPtr< ExtendedAttributeDefinition > &item) override
 Removes the first occurrence of a specific object from this collection. More...
 
int32_t IndexOf (const System::SharedPtr< ExtendedAttributeDefinition > &item) const override
 Determines the index of the specified item in this collection. More...
 
void Insert (int32_t index, const System::SharedPtr< ExtendedAttributeDefinition > &item) override
 Inserts the specified item at the specified index. More...
 
void RemoveAt (int32_t index) override
 Removes an item at the specified index. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< ExtendedAttributeDefinition > > > ToList ()
 Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of the ExtendedAttributeDefinition class. More...
 
System::SharedPtr< ExtendedAttributeDefinitionGetById (int32_t id)
 Returns an extended attribute definition by id 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 ExtendedAttributeDefinition objects.

Member Function Documentation

◆ Add()

void Aspose::Tasks::ExtendedAttributeDefinitionCollection::Add ( const System::SharedPtr< ExtendedAttributeDefinition > &  item)
override

Adds the specified item to this collection.

Parameters
itemthe specified item to add to this collection.

◆ begin() [1/2]

const_iterator Aspose::Tasks::ExtendedAttributeDefinitionCollection::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::ExtendedAttributeDefinitionCollection::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::ExtendedAttributeDefinitionCollection::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::ExtendedAttributeDefinitionCollection::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::ExtendedAttributeDefinitionCollection::Clear ( )
override

Removes all items from this collection.

◆ Contains()

bool Aspose::Tasks::ExtendedAttributeDefinitionCollection::Contains ( const System::SharedPtr< ExtendedAttributeDefinition > &  item) const
override

Returns true if the specified item is found in this collection; otherwise, false.

Parameters
itemthe specified item to find.
Returns
true if the specified item is found in this collection; otherwise, false.

◆ CopyTo()

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

Copies the elements of this collection to the specified array, starting at the specified array index.

Parameters
arraythe specified one-dimensional array to copy elements to
arrayIndexthe zero-based index of the specified array at which copying begins.

◆ end() [1/2]

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

Gets the number of elements contained in this collection.

◆ get_IsReadOnly()

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

Gets a value indicating whether this collection is read-only.

◆ get_ParentProject()

const System::SharedPtr<Project>& Aspose::Tasks::ExtendedAttributeDefinitionCollection::get_ParentProject ( ) const

Gets a parent project for the ExtendedAttributeDefinitionCollection instance.

Returns
returns a parent project for this collection.

◆ GetById()

System::SharedPtr<ExtendedAttributeDefinition> Aspose::Tasks::ExtendedAttributeDefinitionCollection::GetById ( int32_t  id)

Returns an extended attribute definition by id

Parameters
idspecified id
Returns
ExtendedAttributeDefinition with specified id.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<ExtendedAttributeDefinition> > > Aspose::Tasks::ExtendedAttributeDefinitionCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ idx_get()

System::SharedPtr<ExtendedAttributeDefinition> Aspose::Tasks::ExtendedAttributeDefinitionCollection::idx_get ( int32_t  index) const
override

Returns the element at the specified index.

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

◆ idx_set()

void Aspose::Tasks::ExtendedAttributeDefinitionCollection::idx_set ( int32_t  index,
System::SharedPtr< ExtendedAttributeDefinition value 
)
override

Sets the element at the specified index.

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

◆ IndexOf()

int32_t Aspose::Tasks::ExtendedAttributeDefinitionCollection::IndexOf ( const System::SharedPtr< ExtendedAttributeDefinition > &  item) const
override

Determines the index of the specified item in this collection.

Parameters
itemthe specified item to locate in this collection.
Returns
the index of the specified item if found; otherwise, -1.

◆ Insert()

void Aspose::Tasks::ExtendedAttributeDefinitionCollection::Insert ( int32_t  index,
const System::SharedPtr< ExtendedAttributeDefinition > &  item 
)
override

Inserts the specified item at the specified index.

Parameters
indexthe specified zero-based index at which the item should be inserted.
itemthe specified item to insert to this collection.

◆ Remove()

bool Aspose::Tasks::ExtendedAttributeDefinitionCollection::Remove ( const System::SharedPtr< ExtendedAttributeDefinition > &  item)
override

Removes the first occurrence of a specific object from this collection.

Parameters
itemthe specified object to remove.
Returns
true if the specified object was successfully removed from this collection; otherwise, false.

◆ RemoveAt()

void Aspose::Tasks::ExtendedAttributeDefinitionCollection::RemoveAt ( int32_t  index)
override

Removes an item at the specified index.

Parameters
indexthe specified zero-based index to remove an item at.

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<ExtendedAttributeDefinition> > > Aspose::Tasks::ExtendedAttributeDefinitionCollection::ToList ( )

Converts this ExtendedAttributeDefinitionCollection object to a list containing instances of the ExtendedAttributeDefinition class.

Returns
List containing instances of the ExtendedAttributeDefinition class.

◆ virtualizeBeginConstIterator()

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