Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | List of all members
Loyc.Collections.AListSumTracker< T > Class Template Reference

Source file:
Inheritance diagram for Loyc.Collections.AListSumTracker< T >:
Loyc.Collections.AListSumTracker< K, T > Loyc.Collections.AListStatisticTracker< K, T, TSummary > Loyc.Collections.AListStatisticTrackerBase< K, T, TSummary > Loyc.Collections.Impl.IAListTreeObserver< K, T >

Public Member Functions

 AListSumTracker (Func< T, double > selector, AListBase< int, T > list=null)
 
- Public Member Functions inherited from Loyc.Collections.AListSumTracker< K, T >
 AListSumTracker (Func< T, double > selector, AListBase< K, T > list=null)
 
- Public Member Functions inherited from Loyc.Collections.AListStatisticTracker< K, T, TSummary >
 AListStatisticTracker (Func< T, TSummary > selector, Func< TSummary[], TSummary > aggregator, TSummary emptyResult, AListBase< K, T > list=null)
 
 AListStatisticTracker (Func< T, TSummary > selector, Func< TSummary, TSummary, TSummary > aggregator, TSummary emptyResult, AListBase< K, T > list=null)
 
- Public Member Functions inherited from Loyc.Collections.AListStatisticTrackerBase< K, T, TSummary >
TSummary GetSummary ()
 
- Public Member Functions inherited from Loyc.Collections.Impl.IAListTreeObserver< K, T >
void Detach (AListBase< K, T > list, AListNode< K, T >?root)
 Called when the observer is being detached from an AList. Detach(), unlike Attach(), is not paired with a call to RootChanged. More...
 
void RootChanged (AListBase< K, T > list, AListNode< K, T >?root, bool clear)
 Called when the root of the tree changes, or when the list is cleared. Also called after Attach(), but not after Detach(). More...
 

Additional Inherited Members

- Public fields inherited from Loyc.Collections.AListSumTracker< K, T >
double Sum => Summary
 
double Average => Summary / TotalCountInAttachedLists
 
- Public fields inherited from Loyc.Collections.AListStatisticTrackerBase< K, T, TSummary >
IEnumerable< AListBase< K, T > > AttachedLists => _roots.Keys
 
int TotalCountInAttachedLists => _roots.Sum(pair => pair.Key.Count)
 
TSummary Summary => GetSummary()
 
- Protected Member Functions inherited from Loyc.Collections.AListStatisticTracker< K, T, TSummary >
override TSummary Aggregate (TSummary[] data)
 
override TSummary Summarize (AListLeafBase< K, T > data)
 
- Protected Member Functions inherited from Loyc.Collections.AListStatisticTrackerBase< K, T, TSummary >
TSummary GetSummary (AListNode< K, T > node)
 
- Protected fields inherited from Loyc.Collections.AListStatisticTracker< K, T, TSummary >
override TSummary EmptyResult => _emptyResult
 
- Protected fields inherited from Loyc.Collections.AListStatisticTrackerBase< K, T, TSummary >
virtual TSummary EmptyResult => Aggregate(Empty<TSummary>.Array)