|
using System;
using System.Collections.Generic;
using System.Text;
namespace MathParserDataStructures
{
public class CountVisitor : IVisitor
{
private int _count;
public int Count
{
get
{
return _count;
}
}
public void ResetCounter()
{
_count = 0;
}
#region visitor Members
public void Action(MathParserTreeNode treeNode)
{
_count++;
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Interested in computer science, math, research, and everything that relates to innovation. Fan of agnostic programming, don't mind developing under any platform/framework if it explores interesting topics. In search of a better programming paradigm.