Version 3.3.1.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

AttributeMatchCategoryArray
public static readonly TargetMatchCategory[] AttributeMatchCategoryArray
AttributeValueMatchCategoryArray
public static readonly TargetMatchCategory[] AttributeValueMatchCategoryArray
EmptyCategoryArray
public static readonly TargetMatchCategory[] EmptyCategoryArray
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
ValueAttributeMatchCategoryArray
public static readonly TargetMatchCategory[] ValueAttributeMatchCategoryArray
ValueMatchCategoryArray
public static readonly TargetMatchCategory[] ValueMatchCategoryArray

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<TypeSearchIndex.TypeMatchQuery> GetAllCachedTargets()
Returns
System.Collections.Generic.List<TypeSearchIndex.TypeMatchQuery>

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, TargetMatchCategory)
public TypeSearchResult[] GetMatches(Type target, TargetMatchCategory category)
Parameters
System.Type target

TargetMatchCategory category

Returns
TypeSearchResult[]

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

System.Type target2

TargetMatchCategory category1

TargetMatchCategory category2

Returns
TypeSearchResult[]

GetMatches(Type[], TargetMatchCategory[])
public TypeSearchResult[] GetMatches(Type[] targets, TargetMatchCategory[] categories)
Parameters
System.Type[] targets

TargetMatchCategory[] categories

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