model_server/obj/src/objArr.h.cxx
//      remove element defined by given pointer
remove element defined by given pointer
remove element defined by given pointer
void objArr::remove(const Obj* x)
{
    for(int ii=0; ii < _length; ++ii){
	if (os_list[ii] != (Object *)x ) continue;
	for(; ii < _length -1 ; ++ii ) 
	    os_list[ii] = os_list[ii+1];
	--_length;
	os_list[_length] = NULL;
	break;
    }
}
void objArr :: remove ( const Obj * x ) { for ( int ii = 0 ; ii < _length ; ++ ii ) { if ( os_list [ ii ] != ( Object * ) x ) continue ; for ( ; ii < _length - 1 ; ++ ii ) os_list [ ii ] = os_list [ ii + 1 ] ; -- _length ; os_list [ _length ] = NULL ; break ; } }
remove element defined by given pointer
remove element defined by given pointer