昇腾社区首页
中文
注册
开发者
下载

MatchResult构造函数和析构函数

函数功能

MatchResult构造函数和析构函数。

定义匹配结果,入参为pattern即匹配定义。在match result中,matched node为根据pattern node匹配到的节点,与pattern node一一对应的。

函数原型

1
2
3
4
5
6
explicit MatchResult(const Pattern *pattern);
MatchResult(const MatchResult &other) noexcept;
MatchResult(MatchResult &&other) noexcept;
MatchResult &operator=(const MatchResult &other) noexcept;
MatchResult &operator=(MatchResult &&other) noexcept ;
~MatchResult();

参数说明

参数名

输入/输出

说明

pattern

输入

pattern定义。

返回值说明

异常处理

约束说明