void BELIEF_PROBA_STATE::Free(const SIMULATOR& simulator) { if( MH ) delete[] MH; MH = 0; if( _uniqueState ) simulator.FreeState(_uniqueState); _uniqueState = 0; }
void BELIEF_STATE::Free(const SIMULATOR& simulator) { for (std::vector<STATE*>::iterator i_state = Samples.begin(); i_state != Samples.end(); ++i_state) { simulator.FreeState(*i_state); } Samples.clear(); }