source/gjAPI.cpp
void gjAPI::gjInterScore::ClearCache()
{
    // save NULL score table
    gjScoreTable* pNull = m_apScoreTable[0]; m_apScoreTable.erase(0);

    // delete score tables and scores entries
    FOR_EACH(it, m_apScoreTable)
        SAFE_DELETE(it->second)

    // clear container
    m_apScoreTable.clear();
    m_apScoreTable[0] = pNull;
}
// ****************************************************************
/* delete all cached score table objects and score entries */
delete all cached score table objects and score entries
delete all cached score table objects and score entries
void gjAPI::gjInterScore::ClearCache()
{
    gjScoreTable* pNull = m_apScoreTable[0]; m_apScoreTable.erase(0);
    FOR_EACH(it, m_apScoreTable)
        SAFE_DELETE(it->second)
    m_apScoreTable.clear();
    m_apScoreTable[0] = pNull;
}
void gjAPI :: gjInterScore :: ClearCache ( ) { gjScoreTable * pNull = m_apScoreTable [ 0 ] ; m_apScoreTable . erase ( 0 ) ; FOR_EACH ( it , m_apScoreTable ) SAFE_DELETE ( it -> second ) m_apScoreTable . clear ( ) ; m_apScoreTable [ 0 ] = pNull ; }
delete all cached score table objects and score entries
delete all cached score table objects and score entries
// save NULL score table // delete score tables and scores entries // clear container