#include <algorithms.h>
详细描述
template<typename ITERATOR>
class maxon::Match< ITERATOR >
A
Match
represents a part of a sequence, consisting of start position and length. Depending on the operation, the position type may be either an iterator or an index.
构造函数 & 析构函数文档编制
◆
Match()
[1/6]
Constructs a match that is NO_MATCH.
◆
Match()
[2/6]
Copy constructor.
◆
Match()
[3/6]
Move constructor.
◆
Match()
[4/6]
Implicit construction from NO_MATCH.
◆
Match()
[5/6]
Construction from a position with a default length of 1.
◆
Match()
[6/6]
Match
|
(
|
ITERATOR
|
position
,
|
|
|
Int
|
length
|
|
)
|
|
|
Construction from a position and length.
成员函数文档编制
◆
operator=()
[1/3]
Copy assignment.
◆
operator=()
[2/3]
Move assignment.
◆
operator=()
[3/3]
Assignment of NO_MATCH.
◆
GetPosition()
ITERATOR GetPosition
|
(
|
|
)
|
const
|
Returns the first position of the match.
◆
operator ITERATOR()
operator ITERATOR
|
(
|
|
)
|
const
|
Implicit conversion to position type. Equivalent to
GetPosition()
.
◆
GetLength()
Returns the length of the match.
◆
IsFound()
Returns, if this match represents a valid position, or if it is a NO_MATCH.
◆
operator Bool()
Conversion to Bool in conditional expressions (i.e. if statements). Equivalent to
IsFound()
.
Member Data Documentation
◆
_position
ITERATOR _position
|
private
|