SegmentPropagatorCostFunctionEvaluatorUpdateEvaluatorReferences Method |
Updates the evaluator references held by this object using the reference-to-reference
mapping in the specified
CopyContext.
Namespace:
AGI.Foundation.NumericalMethods
Assembly:
AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public virtual void UpdateEvaluatorReferences(
CopyContext context
)
Public Overridable Sub UpdateEvaluatorReferences (
context As CopyContext
)
public:
virtual void UpdateEvaluatorReferences(
CopyContext^ context
)
abstract UpdateEvaluatorReferences :
context : CopyContext -> unit
override UpdateEvaluatorReferences :
context : CopyContext -> unit
Parameters
- context
- Type: AGI.Foundation.InfrastructureCopyContext
The context that specifies the reference mapping.
Implements
IEvaluatorUpdateEvaluatorReferences(CopyContext)Remarks
This method is called by EvaluatorGroup and usually does not need to be
called directly by users. EvaluatorGroup uses this method to replace references
to shared evaluators with references to caching versions of the evaluators.
To implement this method, call UpdateReferenceT(T) on each evaluator reference
held by your evaluator and assign the return value back to the field.
Examples
The following example shows how to implement this method for an evaluator that contains a nested evaluator:
public void UpdateEvaluatorReferences(CopyContext context)
{
m_nestedEvaluator = context.UpdateReference(m_nestedEvaluator);
}
See Also