model_server/subsystem/src/autosubsys.cxx
//
// allentity deletes its contents when it's done. This guarantees that
// all items of class Entity will be gotten rid of when the analysis is
// complete.
allentity deletes its contents when it's done. This guarantees that
all items of class Entity will be gotten rid of when the analysis is
complete.
allentity deletes its contents when it ' s done . This guarantees that all items of class Entity will be gotten rid of when the analysis is complete .
allentity::~allentity()
{
    Initialize(allentity::~allentity);
    Obj *el;
    ForEach(el, *this) delete el;
    for (int i=0;i<MAX_PATH_HASH;i++)
    {
        if (filename_prefix_hash[i])
            delete filename_prefix_hash[i];
        if (logicname_hash[i])
            delete logicname_hash[i];
    }
    OSapi_free(filename_prefix_hash);
    OSapi_free(logicname_hash);
    if (filename_prefix_buf)
        psetfree(filename_prefix_buf);
    if (logicname_buf)
        psetfree(logicname_buf);
}
allentity :: ~ allentity ( ) { Initialize ( allentity :: ~ allentity ) ; Obj * el ; ForEach ( el , * this ) delete el ; for ( int i = 0 ; i < MAX_PATH_HASH ; i ++ ) { if ( filename_prefix_hash [ i ] ) delete filename_prefix_hash [ i ] ; if ( logicname_hash [ i ] ) delete logicname_hash [ i ] ; } OSapi_free ( filename_prefix_hash ) ; OSapi_free ( logicname_hash ) ; if ( filename_prefix_buf ) psetfree ( filename_prefix_buf ) ; if ( logicname_buf ) psetfree ( logicname_buf ) ; }
allentity deletes its contents when it's done.
allentity deletes its contents when it ' s done .
//>>  printf("Entity cleanup complete\n");