interfaces.cs
来自「英语句子自然语言处理统计分析例子 Statistical parsing of」· CS 代码 · 共 38 行
CS
38 行
using System;
namespace Netron.Lithium
{/// <summary>
/// Interface of a visitor
/// </summary>
public interface IVisitor
{
/// <summary>
/// The actual action to perform on visited objects
/// </summary>
/// <param name="shape"></param>
void Visit(ShapeBase shape);
/// <summary>
/// Whether the visiting process is done
/// </summary>
bool IsDone { get; }
}
/// <summary>
/// Interface of a prepost visitor which allows you to have
/// an action before, during and after a visit
/// </summary>
public interface IPrePostVisitor : IVisitor
{
/// <summary>
/// action before the visit
/// </summary>
/// <param name="shape"></param>
void PreVisit(ShapeBase shape);
/// <summary>
/// the action after the visit
/// </summary>
/// <param name="shape"></param>
void PostVisit(ShapeBase shape);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?