System::Xml::Schema::XmlSchemaObjectCollection Class Reference

Inherits System::Collections::CollectionBase< SharedPtr< System::Xml::Schema::XmlSchemaObject > >.

Public Types

using Ptr = SharedPtr< XmlSchemaObjectCollection >
 An alias for shared pointer to an instance of this class. More...
 
- Public Types inherited from System::Collections::CollectionBase< SharedPtr< System::Xml::Schema::XmlSchemaObject > >
using Ptr = SharedPtr< CollectionBase >
 An alias for shared pointer to an instance of this class. More...
 
- Public Types inherited from System::Collections::Generic::IEnumerable< SharedPtr< System::Xml::Schema::XmlSchemaObject > >
typedef IEnumerator< SharedPtr< System::Xml::Schema::XmlSchemaObject > > IEnumeratorType
 Enumerator type. More...
 
using ValueType = SharedPtr< System::Xml::Schema::XmlSchemaObject >
 
using iterator = System::Details::VirtualizedIterator< SharedPtr< System::Xml::Schema::XmlSchemaObject > >
 Iterator type. More...
 
using const_iterator = System::Details::VirtualizedConstIterator< SharedPtr< System::Xml::Schema::XmlSchemaObject > >
 Const iterator type. More...
 
using virtualized_iterator = System::Details::VirtualizedIteratorBase< SharedPtr< System::Xml::Schema::XmlSchemaObject > >
 Inner iterator base type. More...
 
using virtualized_iterator_element = SharedPtr< System::Xml::Schema::XmlSchemaObject >
 Inner iterator element type. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Public Member Functions

ASPOSECPP_SHARED_API XmlSchemaObjectCollection ()
 Initializes a new instance of the XmlSchemaObjectCollection class. More...
 
ASPOSECPP_SHARED_API XmlSchemaObjectCollection (const SharedPtr< XmlSchemaObject > &parent)
 
virtual ASPOSECPP_SHARED_API SharedPtr< XmlSchemaObjectidx_get (int32_t index)
 
virtual ASPOSECPP_SHARED_API void idx_set (int32_t index, SharedPtr< XmlSchemaObject > value)
 
ASPOSECPP_SHARED_API SharedPtr< Collections::Generic::IEnumerator< SharedPtr< XmlSchemaObject > > > GetEnumerator () override
 
ASPOSECPP_SHARED_API int32_t Add (const SharedPtr< XmlSchemaObject > &item)
 
ASPOSECPP_SHARED_API void Insert (int32_t index, const SharedPtr< XmlSchemaObject > &item)
 
ASPOSECPP_SHARED_API int32_t IndexOf (const SharedPtr< XmlSchemaObject > &item)
 
ASPOSECPP_SHARED_API bool Contains (const SharedPtr< XmlSchemaObject > &item)
 
ASPOSECPP_SHARED_API void Remove (const SharedPtr< XmlSchemaObject > &item)
 
ASPOSECPP_SHARED_API void CopyTo (const ArrayPtr< SharedPtr< XmlSchemaObject >> &array, int32_t index)
 
ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument) override
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
- Public Member Functions inherited from System::Collections::CollectionBase< SharedPtr< System::Xml::Schema::XmlSchemaObject > >
int32_t get_Capacity ()
 
void set_Capacity (int32_t value)
 
int32_t get_Count ()
 
void Clear ()
 Removes all objects from the collection instance. This method cannot be overridden. More...
 
void RemoveAt (int32_t index)
 
SharedPtr< Generic::IEnumerator< SharedPtr< System::Xml::Schema::XmlSchemaObject > > > GetEnumerator () override
 
void SetTemplateWeakPtr (uint32_t argument) override
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
- Public Member Functions inherited from System::Collections::Generic::IEnumerable< SharedPtr< System::Xml::Schema::XmlSchemaObject > >
SharedPtr< System::Xml::Schema::XmlSchemaObjectLINQ_ElementAt (int index)
 
SharedPtr< System::Xml::Schema::XmlSchemaObjectLINQ_First ()
 
SharedPtr< System::Xml::Schema::XmlSchemaObjectLINQ_First (const Func< SharedPtr< System::Xml::Schema::XmlSchemaObject >, bool > &predicate)
 
SharedPtr< System::Xml::Schema::XmlSchemaObjectLINQ_FirstOrDefault ()
 
SharedPtr< System::Xml::Schema::XmlSchemaObjectLINQ_FirstOrDefault (std::function< bool(SharedPtr< System::Xml::Schema::XmlSchemaObject >)> predicate)
 
SharedPtr< System::Xml::Schema::XmlSchemaObjectLINQ_Last ()
 
SharedPtr< System::Xml::Schema::XmlSchemaObjectLINQ_LastOrDefault ()
 
SharedPtr< List< SharedPtr< System::Xml::Schema::XmlSchemaObject > > > LINQ_ToList ()
 
int LINQ_Count ()
 
int LINQ_Count (const Func< SharedPtr< System::Xml::Schema::XmlSchemaObject >, bool > &predicate)
 
System::ArrayPtr< SharedPtr< System::Xml::Schema::XmlSchemaObject > > LINQ_ToArray ()
 
bool LINQ_All (std::function< bool(SharedPtr< System::Xml::Schema::XmlSchemaObject >)> predicate)
 
bool LINQ_Any ()
 
bool LINQ_Any (std::function< bool(SharedPtr< System::Xml::Schema::XmlSchemaObject >)> predicate)
 
SharedPtr< IEnumerable< SharedPtr< System::Xml::Schema::XmlSchemaObject > > > LINQ_Where (std::function< bool(SharedPtr< System::Xml::Schema::XmlSchemaObject >)> predicate)
 
bool LINQ_Contains (SharedPtr< System::Xml::Schema::XmlSchemaObject > value)
 
SharedPtr< IEnumerable< ResultType > > LINQ_Cast ()
 
SharedPtr< IEnumerable< Result > > LINQ_Cast ()
 
SharedPtr< IEnumerable< SharedPtr< System::Xml::Schema::XmlSchemaObject > > > LINQ_OrderBy (const Func< SharedPtr< System::Xml::Schema::XmlSchemaObject >, Key > &keySelector)
 
SharedPtr< IEnumerable< Source > > LINQ_OrderBy (const Func< Source, Key > &keySelector)
 
SharedPtr< IEnumerable< SharedPtr< System::Xml::Schema::XmlSchemaObject > > > LINQ_OrderByDescending (const Func< SharedPtr< System::Xml::Schema::XmlSchemaObject >, Key > &keySelector)
 
SharedPtr< IEnumerable< Source > > LINQ_OrderByDescending (const Func< Source, Key > &keySelector)
 
SharedPtr< IEnumerable< ResultType > > LINQ_OfType ()
 
SharedPtr< IEnumerable< Result > > LINQ_OfType ()
 
SharedPtr< IEnumerable< ResultType > > LINQ_Select (const Func< SharedPtr< System::Xml::Schema::XmlSchemaObject >, ResultType > &selector)
 
SharedPtr< IEnumerable< ResultType > > LINQ_Select (const Func< SharedPtr< System::Xml::Schema::XmlSchemaObject >, int32_t, ResultType > &selector)
 
SharedPtr< IEnumerable< Result > > LINQ_Select (const Func< Source, Result > &selector)
 
SharedPtr< IEnumerable< Result > > LINQ_Select (const Func< Source, int32_t, Result > &selector)
 
SharedPtr< IEnumerable< SharedPtr< System::Xml::Schema::XmlSchemaObject > > > LINQ_Concat (SharedPtr< IEnumerable< SharedPtr< System::Xml::Schema::XmlSchemaObject > >> sequence)
 
System::SharedPtr< IEnumerable< System::SharedPtr< System::Linq::IGrouping< Key, SharedPtr< System::Xml::Schema::XmlSchemaObject > > > > > LINQ_GroupBy (System::Func< SharedPtr< System::Xml::Schema::XmlSchemaObject >, Key > keyPredicate)
 
SharedPtr< IEnumerable< SharedPtr< System::Linq::IGrouping< Key, Source > > > > LINQ_GroupBy (System::Func< Source, Key > keyPredicate)
 
SharedPtr< IEnumerable< ResultType > > LINQ_SelectMany (const Func< SharedPtr< System::Xml::Schema::XmlSchemaObject >, SharedPtr< IEnumerable< ResultType >>> &selector)
 
SharedPtr< IEnumerable< Result > > LINQ_SelectMany (const Func< Source, SharedPtr< IEnumerable< Result >>> &selector)
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
virtual virtualized_iteratorvirtualizeBeginIterator ()
 
virtual virtualized_iteratorvirtualizeEndIterator ()
 
virtual virtualized_iteratorvirtualizeBeginConstIterator () const
 
virtual virtualized_iteratorvirtualizeEndConstIterator () const
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Additional Inherited Members

- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

A collection of XmlSchemaObjects.

Attention
Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

Member Typedef Documentation

◆ Ptr

An alias for shared pointer to an instance of this class.

Constructor & Destructor Documentation

◆ XmlSchemaObjectCollection() [1/2]

ASPOSECPP_SHARED_API System::Xml::Schema::XmlSchemaObjectCollection::XmlSchemaObjectCollection ( )

Initializes a new instance of the XmlSchemaObjectCollection class.

◆ XmlSchemaObjectCollection() [2/2]

ASPOSECPP_SHARED_API System::Xml::Schema::XmlSchemaObjectCollection::XmlSchemaObjectCollection ( const SharedPtr< XmlSchemaObject > &  parent)

Initializes a new instance of the XmlSchemaObjectCollection class that takes an XmlSchemaObject.

Parameters
parentThe XmlSchemaObject.

Member Function Documentation

◆ Add()

ASPOSECPP_SHARED_API int32_t System::Xml::Schema::XmlSchemaObjectCollection::Add ( const SharedPtr< XmlSchemaObject > &  item)

Adds an XmlSchemaObject to the XmlSchemaObjectCollection.

Parameters
itemThe XmlSchemaObject.
Returns
The index at which the item has been added.
Exceptions
ArgumentOutOfRangeExceptionindex is less than zero. or index is greater than get_Count value.
InvalidCastExceptionThe XmlSchemaObject parameter specified is not of type XmlSchemaExternal or its derived types XmlSchemaImport, XmlSchemaInclude, and XmlSchemaRedefine.

◆ Contains()

ASPOSECPP_SHARED_API bool System::Xml::Schema::XmlSchemaObjectCollection::Contains ( const SharedPtr< XmlSchemaObject > &  item)

Indicates if the specified XmlSchemaObject is in the XmlSchemaObjectCollection.

Parameters
itemThe XmlSchemaObject.
Returns
true if the specified qualified name is in the collection; otherwise, returns false. If nullptr is supplied, false is returned because there is no qualified name with a null name.

◆ CopyTo()

ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaObjectCollection::CopyTo ( const ArrayPtr< SharedPtr< XmlSchemaObject >> &  array,
int32_t  index 
)

Copies all the XmlSchemaObjects from the collection into the given array, starting at the given index.

Parameters
arrayThe array that is the destination of the elements copied from the XmlSchemaObjectCollection. The array must have zero-based indexing.
indexThe zero-based index in the array at which copying begins.
Exceptions
ArgumentNullExceptionarray is nullptr.
ArgumentOutOfRangeExceptionindex is less than zero.
ArgumentExceptionarray is multi-dimensional. or index is equal to or greater than the length of array. or The number of elements in the source XmlSchemaObject is greater than the available space from index to the end of the destination array.
InvalidCastExceptionThe type of the source XmlSchemaObject cannot be cast automatically to the type of the destination array.

◆ GetEnumerator()

ASPOSECPP_SHARED_API SharedPtr<Collections::Generic::IEnumerator<SharedPtr<XmlSchemaObject> > > System::Xml::Schema::XmlSchemaObjectCollection::GetEnumerator ( )
overridevirtual

Returns an enumerator for iterating through the XmlSchemaObjects contained in the XmlSchemaObjectCollection.

Returns
The iterator returns XmlSchemaObjectEnumerator.

Implements System::Collections::Generic::IEnumerable< SharedPtr< System::Xml::Schema::XmlSchemaObject > >.

◆ idx_get()

virtual ASPOSECPP_SHARED_API SharedPtr<XmlSchemaObject> System::Xml::Schema::XmlSchemaObjectCollection::idx_get ( int32_t  index)
virtual

Returns the XmlSchemaObject at the specified index.

Parameters
indexThe index of the XmlSchemaObject.
Returns
The XmlSchemaObject at the specified index.

◆ idx_set()

virtual ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaObjectCollection::idx_set ( int32_t  index,
SharedPtr< XmlSchemaObject value 
)
virtual

Sets the XmlSchemaObject at the specified index.

Parameters
indexThe index of the XmlSchemaObject.
valueThe value to set.

◆ IndexOf()

ASPOSECPP_SHARED_API int32_t System::Xml::Schema::XmlSchemaObjectCollection::IndexOf ( const SharedPtr< XmlSchemaObject > &  item)

Returns the collection index corresponding to the specified XmlSchemaObject.

Parameters
itemThe XmlSchemaObject whose index you want to return.
Returns
The index corresponding to the specified XmlSchemaObject.

◆ Insert()

ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaObjectCollection::Insert ( int32_t  index,
const SharedPtr< XmlSchemaObject > &  item 
)

Inserts an XmlSchemaObject to the XmlSchemaObjectCollection.

Parameters
indexThe zero-based index at which an item should be inserted.
itemThe XmlSchemaObject to insert.
Exceptions
ArgumentOutOfRangeExceptionindex is less than zero. or index is greater than get_Count value.

◆ Remove()

ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaObjectCollection::Remove ( const SharedPtr< XmlSchemaObject > &  item)

Removes an XmlSchemaObject from the XmlSchemaObjectCollection.

Parameters
itemThe XmlSchemaObject to remove.

◆ SetTemplateWeakPtr()

ASPOSECPP_SHARED_API void System::Xml::Schema::XmlSchemaObjectCollection::SetTemplateWeakPtr ( uint32_t  argument)
overridevirtual

Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.

Parameters
argumentIndex of template argument to treat as weak poiner.

Reimplemented from System::Object.