Class OffsetNodeIdentifier<TInstruction>
- Namespace
- Echo.ControlFlow.Serialization.Dot
- Assembly
- Echo.ControlFlow.dll
Provides an implementation of the INodeIdentifier interface, that returns the offset of the basic block as unique identifiers.
public class OffsetNodeIdentifier<TInstruction> : INodeIdentifier where TInstruction : notnull
Type Parameters
TInstructionThe type of instructions stored in the basic block.
- Inheritance
-
OffsetNodeIdentifier<TInstruction>
- Implements
- Inherited Members
Properties
Instance
Provides a default instance of the OffsetNodeIdentifier<TInstruction> class.
public static OffsetNodeIdentifier<TInstruction> Instance { get; }
Property Value
- OffsetNodeIdentifier<TInstruction>
Methods
GetIdentifier(INode)
Gets the identifier assigned to the node.
public long GetIdentifier(INode node)
Parameters
nodeINodeThe node.
Returns
- long
The identifier.