Ordered, non-owning constraint chain with diagnostics. 更多...
#include <EditConstraint.h>
Public 成员函数 | |
| bool | add (IEditConstraint *constraint) |
| Adds . | |
| bool | remove (IEditConstraint *constraint) |
| Removes . | |
| void | clear () |
| Clears . | |
| bool | evaluate (EditorContext &context, IEditCommand &command) |
| Compatibility-only boolean facade over evaluateChecked(). | |
| Result< void > | evaluateChecked (EditorContext &context, IEditCommand &command) |
| Evaluate the chain and return structured allow/warning/reject diagnostics. | |
| int | diagnosticCount () const |
| const std::string & | diagnostic (int index) const |
| Diagnostic. | |
| bool | rejected () const |
| Rejected. | |
详细描述
Ordered, non-owning constraint chain with diagnostics.
在文件 EditConstraint.h 第 44 行定义.
成员函数说明
◆ add()
| bool eve::editor::EditConstraintPipeline::add | ( | IEditConstraint * | constraint | ) |
Adds .
在文件 EditConstraint.cpp 第 16 行定义.
◆ clear()
| void eve::editor::EditConstraintPipeline::clear | ( | ) |
Clears .
在文件 EditConstraint.cpp 第 27 行定义.
◆ diagnostic()
| const std::string & eve::editor::EditConstraintPipeline::diagnostic | ( | int | index | ) | const |
◆ diagnosticCount()
|
inline |
在文件 EditConstraint.h 第 56 行定义.
被这些函数引用 diagnostic().
◆ evaluate()
| bool eve::editor::EditConstraintPipeline::evaluate | ( | EditorContext & | context, |
| IEditCommand & | command | ||
| ) |
Compatibility-only boolean facade over evaluateChecked().
在文件 EditConstraint.cpp 第 33 行定义.
引用了 context, evaluateChecked() , 以及 eve::Result< void >::ok().
◆ evaluateChecked()
| Result< void > eve::editor::EditConstraintPipeline::evaluateChecked | ( | EditorContext & | context, |
| IEditCommand & | command | ||
| ) |
Evaluate the chain and return structured allow/warning/reject diagnostics.
在文件 EditConstraint.cpp 第 36 行定义.
引用了 context, eve::editor::ConstraintResult::disposition, eve::Result< T >::failure(), message, eve::editor::ConstraintResult::message, eve::None, eve::PreconditionViolation, eve::editor::Reject, eve::editing::ruleDiagnostic() , 以及 eve::editor::Warning.
被这些函数引用 evaluate() , 以及 eve::editor::EditorSession::executeChecked().
◆ rejected()
|
inline |
Rejected.
在文件 EditConstraint.h 第 60 行定义.
◆ remove()
| bool eve::editor::EditConstraintPipeline::remove | ( | IEditConstraint * | constraint | ) |
Removes .
在文件 EditConstraint.cpp 第 21 行定义.
该类的文档由以下文件生成:
- src/modules/editor/EditConstraint.h
- src/modules/editor/EditConstraint.cpp