This is the method called by system from ReferenceTarget::DoEnumDependentsImpl().
- Parameters:
-
rmaker |
- A pointer to the reference maker |
- Returns:
- One of the following values:
- DEP_ENUM_CONTINUE: This continues the enumeration
- DEP_ENUM_HALT: This stops the enumeration.
- DEP_ENUM_SKIP: Reference Targets can have multiple
Reference Makers (dependents). In certain instances when
DoEnumDependents() is used to enumerate them you may not want to
travel up all of the "branches". By returning DEP_ENUM_SKIP from
this method you tell the enumerator to not enumerate the current
Reference Maker's dependents but not to halt the enumeration
completely.
- See also:
- ReferenceTarget::DoEnumDependentsImpl(DependentEnumProc*
dep)
-
ReferenceTarget::DoEnumDependents(DependentEnumProc* dep)
Implements DependentEnumProc.
{
if (rm == myref)
return DEP_ENUM_CONTINUE;
if (rm->SuperClassID() == MAXSCRIPT_WRAPPER_CLASS_ID &&
((MAXWrapper*)rm)->tag == mytag &&
rm->NumRefs() && rm->GetReference(0) == myref &&
(finalCheckProc == NULL || (*finalCheckProc)((MAXWrapper*)rm, arg))
)
{
result = (MAXWrapper*)rm;
return DEP_ENUM_HALT;
}
return DEP_ENUM_SKIP;
}