CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
match_collection.h
1
2#ifndef _match_collection_h_
3#define _match_collection_h_
4
5#include "system/text/regularexpressions/match.h"
6#include "system/collections/list.h"
7
8namespace System {
9namespace Text {
10namespace RegularExpressions {
11
16class ASPOSECPP_SHARED_CLASS MatchCollection : public System::Collections::Generic::List<MatchPtr>
17{
18public:
21 bool IsReadOnly() const { return true; };
22
23protected:
25 ~MatchCollection() override = default;
26private:
28 MatchCollection():List<MatchPtr>(){};
29 MEMBER_FUNCTION_MAKE_OBJECT(MatchCollection, CODEPORTING_ARGS(), CODEPORTING_ARGS());
30
31 friend class Match;
32 friend class Regex;
33#ifdef __DBG_FOR_EACH_MEMBER
34public:
37 void DBG_for_each_member(DBG::for_each_member_visitor &visitor) const override
38 {
40 visitor.add_self(this);
41 }
42
45 const char* DBG_class_name() const override { return "MatchCollection"; }
46#endif
47};
48
51
52}}}
53
54#endif // _match_collection_h_
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
Collection of matches done by repeatedly applying regexp to string. Objects of this class should only...
Definition: match_collection.h:17
bool IsReadOnly() const
Marks collection as read-only.
Definition: match_collection.h:21
~MatchCollection() override=default
Destructor.
Single match of regexp over string. Objects of this class should only be allocated using System::Make...
Definition: match.h:56
Regular expression that follows C#-like syntax. Objects of this class should only be allocated using ...
Definition: regex.h:30
@ Text
Defines color adjustment information for text.
SharedPtr< MatchCollection > MatchCollectionPtr
Match collection pointer.
Definition: match_collection.h:50
Definition: db_command.h:9