model_server/rtl/src/RTL.cxx
// Called from search expression to perform inclusion test
Called from search expression to perform inclusion test
Called from search expression to perform inclusion test
int rtl_obj_includes (Obj *obj, RTL *rtl, int dep_index)
{
   Initialize (rtl_obj_includes);
   int        result = 0;
   RTLNodePtr rtl_node;
   RTLPtr     dependent_rtl;
   RTLNodePtr dependent_rtl_node;
   rtl_node = checked_cast(RTLNode, rtl->get_root());
   if (rtl_node) {
      objArr& dependents = rtl_node->get_dependency ();
      dependent_rtl = checked_cast(RTL, dependents [dep_index]);
      if (dependent_rtl) {
         dependent_rtl_node = checked_cast(RTLNode, dependent_rtl->get_root());
         if (dependent_rtl_node)
            result = dependent_rtl_node->rtl_includes (obj);
      }
   }
   return result;
}
int rtl_obj_includes ( Obj * obj , RTL * rtl , int dep_index ) { Initialize ( rtl_obj_includes ) ; int result = 0 ; RTLNodePtr rtl_node ; RTLPtr dependent_rtl ; RTLNodePtr dependent_rtl_node ; rtl_node = checked_cast ( RTLNode , rtl -> get_root ( ) ) ; if ( rtl_node ) { objArr & dependents = rtl_node -> get_dependency ( ) ; dependent_rtl = checked_cast ( RTL , dependents [ dep_index ] ) ; if ( dependent_rtl ) { dependent_rtl_node = checked_cast ( RTLNode , dependent_rtl -> get_root ( ) ) ; if ( dependent_rtl_node ) result = dependent_rtl_node -> rtl_includes ( obj ) ; } } return result ; }
Called from search expression to perform inclusion test
Called from search expression to perform inclusion test
// get dependents array // get dependent rtl header // get dependent rtl node // check for containment