Version 3.0.0.2

TypeSearchIndex class

Namespace: Sirenix.OdinInspector.Editor.TypeSearch
Assembly: Sirenix.OdinInspector.Editor
public sealed class TypeSearchIndex
Inheritance
  • System.Object
  • TypeSearchIndex

Constructors

TypeSearchIndex(Boolean, Boolean)
public TypeSearchIndex(bool addDefaultValidationRules = true, bool addDefaultMatchRules = true)
Parameters
System.Boolean addDefaultValidationRules

System.Boolean addDefaultMatchRules

Fields

IndexingRules
public List<TypeMatchIndexingRule> IndexingRules
LOCK
To safely change anything in the type cache, you must be holding this lock.
public readonly object LOCK
LogInvalidTypeInfo
public Action<string, TypeSearchInfo> LogInvalidTypeInfo
MatchedTypeLogName
public string MatchedTypeLogName
MatchRules
public List<TypeMatchRule> MatchRules
TypeMatcherCreators
public List<TypeMatcherCreator> TypeMatcherCreators

Methods

AddDefaultIndexingRules()
public void AddDefaultIndexingRules()
AddDefaultMatchCreators()
public void AddDefaultMatchCreators()
AddDefaultMatchRules()
public void AddDefaultMatchRules()
AddIndexedType(TypeSearchInfo)
public void AddIndexedType(TypeSearchInfo typeToIndex)
Parameters
TypeSearchInfo typeToIndex

AddIndexedTypes(List<TypeSearchInfo>)
public void AddIndexedTypes(List<TypeSearchInfo> typesToIndex)
Parameters
System.Collections.Generic.List<TypeSearchInfo> typesToIndex

AddIndexedTypeUnsorted(TypeSearchInfo)
public void AddIndexedTypeUnsorted(TypeSearchInfo typeToIndex)
Parameters
TypeSearchInfo typeToIndex

ClearResultCache()
public void ClearResultCache()
GetAllCachedMergeSignatures(TypeSearchIndex)
public static List<List<Type[]>> GetAllCachedMergeSignatures(TypeSearchIndex index)
Parameters
TypeSearchIndex index

Returns
System.Collections.Generic.List<System.Collections.Generic.List<System.Type[]>>

GetAllCachedTargets()
public List<Type[]> GetAllCachedTargets()
Returns
System.Collections.Generic.List<System.Type[]>

GetCachedMergedQueryResults(TypeSearchResult[][], Int32)
public static TypeSearchResult[] GetCachedMergedQueryResults(TypeSearchResult[][] results, int resultsCount)
Parameters
TypeSearchResult[][] results

System.Int32 resultsCount

Returns
TypeSearchResult[]

GetCachedMergedQueryResults(List<TypeSearchResult[]>)
public static TypeSearchResult[] GetCachedMergedQueryResults(List<TypeSearchResult[]> results)
Parameters
System.Collections.Generic.List<TypeSearchResult[]> results

Returns
TypeSearchResult[]

GetMatches(Type)
public TypeSearchResult[] GetMatches(Type target)
Parameters
System.Type target

Returns
TypeSearchResult[]

GetMatches(Type, Type)
public TypeSearchResult[] GetMatches(Type target1, Type target2)
Parameters
System.Type target1

System.Type target2

Returns
TypeSearchResult[]

GetMatches(Type[])
public TypeSearchResult[] GetMatches(params Type[] targets)
Parameters
System.Type[] targets

Returns
TypeSearchResult[]

MergeQueryResultsIntoList(List<TypeSearchResult[]>, List<TypeSearchResult>)
public static void MergeQueryResultsIntoList(List<TypeSearchResult[]> results, List<TypeSearchResult> mergeIntoList)
Parameters
System.Collections.Generic.List<TypeSearchResult[]> results

System.Collections.Generic.List<TypeSearchResult> mergeIntoList