My favorites | Sign in
Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
Copyright 2007-2009 The NGenerics Team
(http://code.google.com/p/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>
public 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
}
}
Show details Hide details

Change log

r8 by rhanekom on Aug 08, 2009   Diff
- Added ignores for bin and obj
- Added License file and lgpl copy.
- License header updated in all source
files.
Go to: 
Sign in to write a code review

Older revisions

r2 by Simon.Cropp on Aug 07, 2009   Diff
initial port of code from codeplex
All revisions of this file

File info

Size: 1420 bytes, 48 lines
Hosted by Google Code