public Heap(CheckPriorityMethod cpm, CompareFunc compare_func = null) { switch (cpm) { case CheckPriorityMethod.CPM_CUSTOM: m_compare_func = compare_func; m_check_priority_func = CheckPriorityByComparer; break; case CheckPriorityMethod.CPM_GREATER: m_check_priority_func = CheckPriorityByGreater; break; case CheckPriorityMethod.CPM_LESS: m_check_priority_func = CheckPriorityByLess; break; default: break; } }
public void Destruct() { Clear(); m_check_priority_func = null; m_compare_func = null; }
public Heap(CompareFunc compare_func) { m_compare_func = compare_func; m_check_priority_func = CheckPriorityByComparer; }