Class VirtualCycleDetector
Class for detecting cycles in virtual symbolic links. Determines if a given link is part of a cycle.
Inherited Members
Namespace: AkiraNetwork.VirtualStorageLibrary
Assembly: VirtualStorageLibrary.dll
Syntax
public class VirtualCycleDetector
Constructors
VirtualCycleDetector()
Initializes a new instance of the VirtualCycleDetector class.
Declaration
public VirtualCycleDetector()
Properties
Count
Gets the number of detected cycles.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int | The number of detected cycles. |
CycleDictionary
Gets the dictionary of detected cycles.
Declaration
public Dictionary<VirtualID, VirtualSymbolicLink> CycleDictionary { get; }
Property Value
Type | Description |
---|---|
Dictionary<VirtualID, VirtualSymbolicLink> | A dictionary where the keys are VirtualIDs and the values are the corresponding VirtualSymbolicLinks. |
Methods
Clear()
Clears the dictionary of detected cycles.
Declaration
public void Clear()
IsNodeInCycle(VirtualSymbolicLink)
Determines whether the specified VirtualSymbolicLink is part of a cycle.
Declaration
public bool IsNodeInCycle(VirtualSymbolicLink link)
Parameters
Type | Name | Description |
---|---|---|
VirtualSymbolicLink | link | The VirtualSymbolicLink to check. |
Returns
Type | Description |
---|---|
bool | True if the link is part of a cycle; otherwise, false. |