Sawmill

Class RewritableRewriter<T>

An implementation of IRewriter<T> for Ts which implement IRewritable<T>.

Inheritance
  • Object
  • RewritableRewriter<T>
Implements
Declaration
public class RewritableRewriter<T> : Object, IRewriter<T> where T : IRewritable<T>
Type Parameters
Name Description

T

The rewritable tree type

Constructors

RewritableRewriter()

Create an instance of RewritableRewriter<T>.

Declaration
protected RewritableRewriter()

Properties

Instance

Gets the single global instance of RewritableRewriter<T>

Declaration
public static RewritableRewriter<T> Instance { get; }
Property Value
Type Description

RewritableRewriter<T>

Methods

CountChildren(T)

CountChildren(T)
Declaration
public int CountChildren(T value)
Parameters
Type Name Description

T

value

Returns
Type Description

Int32

GetChildren(Span<T>, T)

GetChildren(Span<T>, T)
Declaration
public void GetChildren(Span<T> childrenReceiver, T value)
Parameters
Type Name Description

Span<T>

childrenReceiver

T

value

SetChildren(ReadOnlySpan<T>, T)

SetChildren(ReadOnlySpan<T>, T)
Declaration
public T SetChildren(ReadOnlySpan<T> newChildren, T value)
Parameters
Type Name Description

ReadOnlySpan<T>

newChildren

T

value

Returns
Type Description

T

Implements

IRewriter<T>