System::Text::RegularExpressions::CaptureCollection Class Reference

Inherits System::Collections::Generic::List< CapturePtr >.

Public Types

typedef System::Collections::Generic::List< CapturePtrBase
 Base type. More...
 
- Public Types inherited from System::Collections::Generic::List< CapturePtr >
typedef CapturePtr ValueType
 This type. More...
 
typedef IList< CapturePtr > BaseType
 Interface type. More...
 
typedef std::vector< CapturePtr, ASPOSE_COLLECTION_ALLOCATOR_TYPE > vector_t
 Underlying data type. More...
 
typedef SharedPtr< IEnumerable< CapturePtr > > IEnumerablePtr
 Container holding elements of same type we hold. More...
 
typedef SharedPtr< IEnumerator< CapturePtr > > IEnumeratorPtr
 Enumerator type. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Public Types inherited from System::Collections::Generic::IList< CapturePtr >
typedef ICollection< CapturePtr > BaseType
 Base type. More...
 
typedef IList< CapturePtr > ThisType
 This type. More...
 
typedef CapturePtr ValueType
 Value type. More...
 
- Public Types inherited from System::Collections::Generic::ICollection< CapturePtr >
typedef CapturePtr ValueType
 Value type name. More...
 
typedef ICollection< CapturePtr > ThisType
 Collection type name. More...
 
- Public Types inherited from System::Collections::Generic::IEnumerable< CapturePtr >
typedef IEnumerator< CapturePtr > IEnumeratorType
 Enumerator type. More...
 

Public Member Functions

int get_Count () const override
 
bool Add (const CapturePtr item)
 
void Clear () override
 Disables cleaning collection. More...
 
bool Remove (const CapturePtr item)
 
bool get_IsReadOnly () const override
 
bool get_IsSynchronized () const
 
void AddCapture (const CapturePtr item)
 
- Public Member Functions inherited from System::Collections::Generic::List< CapturePtr >
 List ()
 Creates empty list. More...
 
 List (int capacity)
 
 List (IEnumerablePtr collection)
 
void AddInitializer (int size, const CapturePtr inits[])
 
IEnumeratorPtr GetEnumerator () override
 
int get_Count () const override
 
void Add (const CapturePtr &item) override
 
void Clear () override
 Deletes all elements. More...
 
bool Contains (const CapturePtr &item) const override
 
bool Remove (const CapturePtr &item) override
 
void CopyTo (System::ArrayPtr< CapturePtr > array, int arrayIndex) override
 
void CopyTo (const System::ArrayPtr< CapturePtr > &array)
 
void CopyTo (int index, const System::ArrayPtr< CapturePtr > &array, int arrayIndex, int count)
 
int IndexOf (const CapturePtr &item) const override
 
int IndexOf (const CapturePtr &item, int index) const
 
void Insert (int index, const CapturePtr &item) override
 
void RemoveAt (int index) override
 
CapturePtr idx_get (int index) const override
 
void idx_set (int index, CapturePtr value) override
 
int get_Capacity () const
 
void set_Capacity (int capacity)
 
void AddRange (IEnumerablePtr collection)
 
SharedPtr< System::Collections::ObjectModel::ReadOnlyCollection< CapturePtr > > AsReadOnly ()
 
int BinarySearch (const CapturePtr &item) const
 
int BinarySearch (const CapturePtr &item, const SharedPtr< System::Collections::Generic::IComparer< CapturePtr > > &comparer) const
 
int BinarySearch (int index, int count, const CapturePtr &item, const SharedPtr< System::Collections::Generic::IComparer< CapturePtr > > &comparer) const
 
SharedPtr< List< OutputType > > ConvertAll (Converter< CapturePtr, OutputType > converter)
 
bool Exists (System::Predicate< CapturePtr > match)
 
CapturePtr Find (System::Predicate< CapturePtr > predicate)
 
ListPtr< CapturePtr > FindAll (System::Predicate< CapturePtr > match)
 
int FindIndex (System::Predicate< CapturePtr > match)
 
int FindIndex (int startIndex, System::Predicate< CapturePtr > match)
 
int FindIndex (int startIndex, int count, System::Predicate< CapturePtr > match)
 
CapturePtr FindLast (System::Predicate< CapturePtr > match)
 
void ForEach (System::Action< CapturePtr > action)
 
ThisPtr GetRange (int index, int count)
 
void InsertRange (int index, IEnumerablePtr collection)
 
int32_t LastIndexOf (const CapturePtr &item) const
 
int32_t LastIndexOf (const CapturePtr &item, int32_t index) const
 
int32_t LastIndexOf (const CapturePtr &item, int32_t index, int32_t count) const
 
int RemoveAll (Predicate< CapturePtr > match)
 
void RemoveRange (int index, int count)
 
void Reverse ()
 Reverses elements order of the whole list. More...
 
void Reverse (int index, int count)
 
void Sort (const SharedPtr< System::Collections::Generic::IComparer< CapturePtr > > &comparator)
 
void Sort ()
 Sorts elements in the list using default comparator. More...
 
void Sort (int index, int count, SharedPtr< System::Collections::Generic::IComparer< CapturePtr > > comparator)
 
void Sort (Comparison< CapturePtr > comparison, bool)
 
ArrayPtr< CapturePtr > ToArray () const
 
void TrimExcess ()
 Makes list capacity to fit its size. More...
 
bool TrueForAll (System::Predicate< CapturePtr > match)
 
vector_t::reference operator[] (int index)
 
vector_t::const_reference operator[] (int index) const
 
vector_tdata ()
 
const vector_tdata () const
 
void _add_range (std::initializer_list< CapturePtr > list)
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 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 refernce counter. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. 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)
 
- Public Member Functions inherited from System::Collections::Generic::ICollection< CapturePtr >
ICollectionoperator= (ICollection &&)
 
ICollectionoperator= (const ICollection &)
 
 ICollection ()
 Default constructor. More...
 
 ICollection (const ICollection &)
 Copy constructor. More...
 
 ICollection (ICollection &&)
 Move constructor. More...
 
virtual ~ICollection ()
 Destructor. More...
 
- Public Member Functions inherited from System::Collections::Generic::IEnumerable< CapturePtr >
CapturePtr LINQ_ElementAt (int index)
 
CapturePtr LINQ_First ()
 
System::SharedPtr< Collections::Generic::List< CapturePtr > > LINQ_ToList ()
 
int LINQ_Count ()
 
System::ArrayPtr< CapturePtr > LINQ_ToArray ()
 
bool LINQ_All (std::function< bool(CapturePtr)> predicate)
 
bool LINQ_Any ()
 
bool LINQ_Any (std::function< bool(CapturePtr)> predicate)
 
CapturePtr LINQ_FirstOrDefault (std::function< bool(CapturePtr)> predicate)
 
SharedPtr< IEnumerable< CapturePtr > > LINQ_Where (std::function< bool(CapturePtr)> predicate)
 

Protected Member Functions

 ~CaptureCollection () override=default
 Destructor. More...
 
- Protected Member Functions inherited from System::Collections::Generic::List< CapturePtr >
 ~List () override
 Destructor. More...
 
- Protected Member Functions inherited from System::Collections::Generic::IEnumerable< CapturePtr >
 ~IEnumerable () override
 Destructor. More...
 

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 ()
 Impleemnts C# typeof(System.Object) construct. More...
 
- Protected Types inherited from System::Collections::Generic::List< CapturePtr >
typedef SharedPtr< List< CapturePtr > > ThisPtr
 Pointer type. More...
 
typedef vector_t::iterator iterator_t
 Iterator type. More...
 
typedef vector_t::const_iterator const_iterator_t
 Const iterator type. More...
 

Detailed Description

List of captures done by single capturing group. Objects of this class should only be allocated using System::MakeObject() function. Never create instance 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

◆ Base

Constructor & Destructor Documentation

◆ ~CaptureCollection()

System::Text::RegularExpressions::CaptureCollection::~CaptureCollection ( )
overrideprotecteddefault

Destructor.

Member Function Documentation

◆ Add()

bool System::Text::RegularExpressions::CaptureCollection::Add ( const CapturePtr  item)
inline

Disables collection ammendment.

Parameters
itemItem to add; ignored.
Returns
Always returns false.

◆ AddCapture()

void System::Text::RegularExpressions::CaptureCollection::AddCapture ( const CapturePtr  item)
inline

Service method to add capture into collection.

Parameters
itemItem to add.

◆ Clear()

void System::Text::RegularExpressions::CaptureCollection::Clear ( )
inlineoverridevirtual

Disables cleaning collection.

Implements System::Collections::Generic::ICollection< CapturePtr >.

◆ get_Count()

int System::Text::RegularExpressions::CaptureCollection::get_Count ( ) const
inlineoverridevirtual

Gets number of captures.

Returns
Contained captures number.

Implements System::Collections::Generic::ICollection< CapturePtr >.

◆ get_IsReadOnly()

bool System::Text::RegularExpressions::CaptureCollection::get_IsReadOnly ( ) const
inlineoverridevirtual

Marks collection as read-only.

Returns
Always returns true.

Reimplemented from System::Collections::Generic::ICollection< CapturePtr >.

◆ get_IsSynchronized()

bool System::Text::RegularExpressions::CaptureCollection::get_IsSynchronized ( ) const
inline

Marks collection as unsynchronized.

Returns
Always returns false.

◆ Remove()

bool System::Text::RegularExpressions::CaptureCollection::Remove ( const CapturePtr  item)
inline

Disables collection ammendment.

Parameters
itemItem to remove; ignored.
Returns
Always returns false.