model_server/obj/src/objRelation.h.cxx
// Remove whole relation of specified type
Remove whole relation of specified type
Remove whole relation of specified type
void  Relational::rem_rel(RelType *rt)
{
    Initialize(Relational::rem_rel);  
    Assert(rt);
    Obj * m = get_raw_ptr(rt);
    if (! m)
	return;
  if(m->collectionp())
    {
     Obj * el;
     objSet ms(m);
     ForEach(el, ms)
        rem_rel(*(Relational *)el, rt);
    }
  else
     rem_rel(*(Relational *)m, rt);
}
void Relational :: rem_rel ( RelType * rt ) { Initialize ( Relational :: rem_rel ) ; Assert ( rt ) ; Obj * m = get_raw_ptr ( rt ) ; if ( ! m ) return ; if ( m -> collectionp ( ) ) { Obj * el ; objSet ms ( m ) ; ForEach ( el , ms ) rem_rel ( * ( Relational * ) el , rt ) ; } else rem_rel ( * ( Relational * ) m , rt ) ; }
Remove whole relation of specified type
Remove whole relation of specified type