csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.3 KiB
48 lines
1.3 KiB
/*
|
|
Copyright 2007-2013 The NGenerics Team
|
|
(https://github.com/ngenerics/ngenerics/wiki/Team)
|
|
|
|
This program is licensed under the GNU Lesser General Public License (LGPL). You should
|
|
have received a copy of the license along with the source code. If not, an online copy
|
|
of the license can be found at http://www.gnu.org/copyleft/lesser.html.
|
|
*/
|
|
|
|
|
|
namespace NGenerics.Patterns.Visitor
|
|
{
|
|
/// <summary>
|
|
/// An in order implementation of the <see cref="OrderedVisitor{T}"/> class.
|
|
/// </summary>
|
|
/// <typeparam name="T">The type of objects to be visited.</typeparam>
|
|
internal sealed class InOrderVisitor<T> : OrderedVisitor<T>
|
|
{
|
|
#region Construction
|
|
|
|
/// <param name="visitor">The visitor.</param>
|
|
public InOrderVisitor(IVisitor<T> visitor) : base(visitor) { }
|
|
|
|
#endregion
|
|
|
|
#region OrderedVisitor<T> Members
|
|
|
|
/// <summary>
|
|
/// Visits the object in post order.
|
|
/// </summary>
|
|
/// <param name="obj">The obj.</param>
|
|
public override void VisitPostOrder(T obj)
|
|
{
|
|
// Do nothing.
|
|
}
|
|
|
|
/// <summary>
|
|
/// Visits the object in pre order.
|
|
/// </summary>
|
|
/// <param name="obj">The obj.</param>
|
|
public override void VisitPreOrder(T obj)
|
|
{
|
|
// Do nothing.
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|