#include <mxsobjects.h>
Public Member Functions |
|
FindMAXWrapperEnum (ReferenceTarget *ref, ValueMetaClass *tag, bool(*finalCheckProc)(MAXWrapper *, void *)=NULL, void *arg=NULL) | |
int | proc (ReferenceMaker *rm) |
This is the method called by system from
ReferenceTarget::DoEnumDependentsImpl().
|
|
Public Attributes |
|
Value * | result |
FindMAXWrapperEnum | ( | ReferenceTarget * | ref, |
ValueMetaClass * | tag, | ||
bool(*)(MAXWrapper *, void *) | finalCheckProc =
NULL , |
||
void * | arg = NULL |
||
) | [inline] |
int proc | ( | ReferenceMaker * | rmaker | ) | [inline, virtual] |
This is the method called by system from ReferenceTarget::DoEnumDependentsImpl().
rmaker | - A pointer to the reference maker |
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; // just look at direct dependents }