2#ifndef _aspsoe_system_text_regularexpressions_capture_collection_h_
3#define _aspsoe_system_text_regularexpressions_capture_collection_h_
5#include <system/text/regularexpressions/capture.h>
6#include <system/exceptions.h>
8#include "system/cycles_detection.h"
9#include <system/collections/list.h>
14namespace RegularExpressions {
27 int get_Count()
const override {
return static_cast<int>(m_data.size()); }
34 using Base::operator[];
62#ifdef ASPOSE_GET_SHARED_MEMBERS
64 virtual void GetSharedMembers(System::Object::shared_members_type& result)
const override
66 Object::GetSharedMembers(result);
67 result.PopulateSharedMembers(
"System::Text::RegularExpressions::CaptureCollection::m_data[]", m_data);
71#ifdef __DBG_FOR_EACH_MEMBER
75 void DBG_for_each_member(DBG::for_each_member_visitor &visitor)
const override
77 Object::DBG_for_each_member(visitor);
78 visitor.add_self(
this);
79 for_each_of_Object(
this, m_data, visitor);
84 const char* DBG_class_name()
const override {
return "CaptureCollection"; }
List forward declaration.
Definition: list.h:127
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
List of captures done by single capturing group. Objects of this class should only be allocated using...
Definition: capture_collection.h:21
void AddCapture(const CapturePtr &item)
Service method to add capture into collection.
Definition: capture_collection.h:54
bool get_IsReadOnly() const override
Marks collection as read-only.
Definition: capture_collection.h:47
int get_Count() const override
Gets number of captures.
Definition: capture_collection.h:27
~CaptureCollection() override=default
Destructor.
bool Remove(const CapturePtr &item) override
Disables collection ammendment.
Definition: capture_collection.h:44
System::Collections::Generic::List< CapturePtr > Base
Base type.
Definition: capture_collection.h:30
bool get_IsSynchronized() const
Marks collection as unsynchronized.
Definition: capture_collection.h:50
void Clear() override
Disables cleaning collection.
Definition: capture_collection.h:40
void Add(const CapturePtr &item) override
Disables collection ammendment.
Definition: capture_collection.h:38
Single match of regexp over string. Objects of this class should only be allocated using System::Make...
Definition: match.h:56
@ Text
Defines color adjustment information for text.
SharedPtr< CaptureCollection > CaptureCollectionPtr
Pointer to capture collection.
Definition: capture_collection.h:90
Definition: db_command.h:9