#include <CSOObjectHeap.h>

Public Member Functions | |
| CSOObjectHeap () | |
| Standard constructor. | |
| ~CSOObjectHeap () | |
| Standard destructor. | |
| T * | root () |
| Get root (fist) element of heap, typecast from CSOLiveWireNode to T. | |
| void | swap (unsigned int i, unsigned int j) |
| Swap two heap elements and resort heap. | |
| void | insert (T *we) |
| Insert heap element, resort heap. | |
| void | insert (T *we, float v) |
| Insert heap element and set value, resort heap. | |
| void | update (T *we, float nv) |
| Update given heap element with new value, resort heap. | |
| int | remove (T *we) |
| Remove heap element, resort heap. | |
| void | sort () |
| Sort heap. | |
Definition at line 27 of file CSOObjectHeap.h.
| ml::CSOObjectHeap< T >::CSOObjectHeap | ( | ) | [inline] |
Standard constructor.
Definition at line 69 of file CSOObjectHeap.h.
References ML_TRACE_IN_TIME_CRITICAL.
| ml::CSOObjectHeap< T >::~CSOObjectHeap | ( | ) | [inline] |
Standard destructor.
Definition at line 77 of file CSOObjectHeap.h.
References ml::CSOObjectVector< T >::clear(), and ML_TRACE_IN_TIME_CRITICAL.
| void ml::CSOObjectHeap< T >::insert | ( | T * | we, | |
| float | v | |||
| ) | [inline] |
Insert heap element and set value, resort heap.
Definition at line 125 of file CSOObjectHeap.h.
References ml::CSOObjectVector< T >::appendUnsafe(), ml::CSOObjectVector< T >::last(), ML_TRACE_IN_TIME_CRITICAL, ml::CSOObjectVector< T >::num(), and ml::CSOObjectHeap< T >::update().
| void ml::CSOObjectHeap< T >::insert | ( | T * | we | ) | [inline] |
Insert heap element, resort heap.
Definition at line 109 of file CSOObjectHeap.h.
References ml::CSOObjectVector< T >::appendUnsafe(), int(), ml::CSOObjectVector< T >::last(), and ML_TRACE_IN_TIME_CRITICAL.
Referenced by ml::CSOObjectHeap< T >::sort().
| int ml::CSOObjectHeap< T >::remove | ( | T * | we | ) | [inline, virtual] |
Remove heap element, resort heap.
Reimplemented from ml::CSOObjectVector< T >.
Definition at line 144 of file CSOObjectHeap.h.
References ml::CSOObjectVector< T >::at(), ml::CSOObjectVector< T >::deleteLast(), ML_TRACE_IN_TIME_CRITICAL, ml::CSOObjectVector< T >::num(), and ml::CSOObjectHeap< T >::swap().
| T * ml::CSOObjectHeap< T >::root | ( | ) | [inline] |
Get root (fist) element of heap, typecast from CSOLiveWireNode to T.
Definition at line 87 of file CSOObjectHeap.h.
References ml::CSOObjectVector< T >::firstBoundsCheck(), ML_TRACE_IN_TIME_CRITICAL, and T.
| void ml::CSOObjectHeap< T >::sort | ( | ) | [inline] |
Sort heap.
Definition at line 236 of file CSOObjectHeap.h.
References ml::CSOObjectVector< T >::append(), ml::CSOObjectVector< T >::clear(), ml::CSOObjectHeap< T >::insert(), ML_CHECK_NEW, ML_DELETE, ML_TRACE_IN, and ml::CSOObjectVector< T >::num().
| void ml::CSOObjectHeap< T >::swap | ( | unsigned int | i, | |
| unsigned int | j | |||
| ) | [inline, virtual] |
Swap two heap elements and resort heap.
Reimplemented from ml::CSOObjectVector< T >.
Definition at line 97 of file CSOObjectHeap.h.
References ml::CSOObjectVector< T >::at(), and ML_TRACE_IN_TIME_CRITICAL.
Referenced by ml::CSOObjectHeap< T >::remove().
| void ml::CSOObjectHeap< T >::update | ( | T * | we, | |
| float | nv | |||
| ) | [inline] |
Update given heap element with new value, resort heap.
Definition at line 175 of file CSOObjectHeap.h.
References ML_TRACE_IN_TIME_CRITICAL, and ml::CSOObjectVector< T >::num().
Referenced by ml::CSOObjectHeap< T >::insert().
1.5.8