TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.TopoSort< T > Class Template Reference
+ Collaboration diagram for Terraria.ModLoader.TopoSort< T >:

Classes

class  SortingException
 

Public Member Functions

 TopoSort (IEnumerable< T > elements, Func< T, IEnumerable< T > > dependencies=null, Func< T, IEnumerable< T > > dependents=null)
 
void AddEntry (T dependency, T dependent)
 
List< T > Dependencies (T t)
 
List< T > Dependents (T t)
 
ISet< T > AllDependencies (T t)
 
ISet< T > AllDependendents (T t)
 
List< T > Sort ()
 

Public Attributes

readonly ReadOnlyCollection< T > list
 

Static Private Member Functions

static void BuildSet (T t, IDictionary< T, List< T > > dict, ISet< T > set)
 

Private Attributes

IDictionary< T, List< T > > dependencyDict = new Dictionary<T, List<T>>()
 
IDictionary< T, List< T > > dependentDict = new Dictionary<T, List<T>>()
 

Detailed Description

Definition at line 8 of file TopoSort.cs.


The documentation for this class was generated from the following file: