Table of Contents

Class TuningDescriptionCache

Namespace
LlamaLogic.TuningArchive
Assembly
LlamaLogic.TuningArchive.dll

Keeps the documents of a TuningDescriptionSet that analysis has used, so that analyzing many tunings does not read and parse the same descriptions repeatedly (🔒)

public sealed class TuningDescriptionCache
Inheritance
TuningDescriptionCache
Inherited Members

Constructors

TuningDescriptionCache(TuningDescriptionSet)

Initializes a new cache for the specified set

public TuningDescriptionCache(TuningDescriptionSet set)

Parameters

set TuningDescriptionSet

Properties

Set

Gets the set of tuning descriptions

public TuningDescriptionSet Set { get; }

Property Value

TuningDescriptionSet

Methods

Clear()

Releases the documents the cache keeps

public void Clear()

Resolve(TunableDescription)

Gets the description the specified description stands for: the description of the fragment it refers to if it is a FragmentReferenceTunableDescription, and otherwise itself

public TunableDescription Resolve(TunableDescription description)

Parameters

description TunableDescription

Returns

TunableDescription

Exceptions

InvalidDataException

The set does not have the fragment to which description refers