model_server/obj/src/objRelation.h.cxx
// Remove one relation - internal function (doesn't care about inversed one)
Remove one relation - internal function (doesn't care about inversed one)
Remove one relation - internal function ( doesn ' t care about inversed one )
void  Relational::priv_rem_one_ptr(Relational * m, RelType *rt)
  {
  Obj ** ptr = (Obj **) ((char *)this + rt->offset);
  if ( !ptr || ! *ptr)
    return;
  Obj * m1 = *ptr;
  if(m1->collectionp())
    {
    ((objSet *)m1)->remove(m);
    if(m1->size() == 0)
      {
      delete ((objSet *)m1);
      *ptr = 0;
      }
    }
  else
    {
    *ptr = 0;
    }  
  }
void Relational :: priv_rem_one_ptr ( Relational * m , RelType * rt ) { Obj * * ptr = ( Obj * * ) ( ( char * ) this + rt -> offset ) ; if ( ! ptr || ! * ptr ) return ; Obj * m1 = * ptr ; if ( m1 -> collectionp ( ) ) { ( ( objSet * ) m1 ) -> remove ( m ) ; if ( m1 -> size ( ) == 0 ) { delete ( ( objSet * ) m1 ) ; * ptr = 0 ; } } else { * ptr = 0 ; } }
Remove one relation - internal function (doesn't care about inversed one)
Remove one relation - internal function ( doesn ' t care about inversed one )