Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Smooth.Compare.Utilities.LogUnregisteredOnDestroy Class Reference

Simple utility that listens to finder events and logs all requests for unregistered comparers when the component is destroyed. More...

Inheritance diagram for Smooth.Compare.Utilities.LogUnregisteredOnDestroy:

Public Attributes

bool destroyOnLoad
 

Protected Member Functions

void Awake ()
 
virtual void HandleFinderEvent (ComparerType comparerType, EventType eventType, Type type)
 
void OnDestroy ()
 

Protected Attributes

HashSet< Type > comparers = new HashSet<Type>()
 
HashSet< Type > equalityComparers = new HashSet<Type>()
 

Detailed Description

Simple utility that listens to finder events and logs all requests for unregistered comparers when the component is destroyed.

This can be useful when running an application meant for a non-JIT platform in a JIT-enabled simulator so you can test many code paths, then track down and fix any potential comparer issues.

Member Function Documentation

void Smooth.Compare.Utilities.LogUnregisteredOnDestroy.Awake ( )
inlineprotected
virtual void Smooth.Compare.Utilities.LogUnregisteredOnDestroy.HandleFinderEvent ( ComparerType  comparerType,
EventType  eventType,
Type  type 
)
inlineprotectedvirtual
void Smooth.Compare.Utilities.LogUnregisteredOnDestroy.OnDestroy ( )
inlineprotected

Member Data Documentation

HashSet<Type> Smooth.Compare.Utilities.LogUnregisteredOnDestroy.comparers = new HashSet<Type>()
protected
bool Smooth.Compare.Utilities.LogUnregisteredOnDestroy.destroyOnLoad
HashSet<Type> Smooth.Compare.Utilities.LogUnregisteredOnDestroy.equalityComparers = new HashSet<Type>()
protected

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