#include "mfcpch.h"
#include "sortflts.h"
#include "notdll.h"
Go to the source code of this file.
ELISTIZE | ( | SORTED_FLOAT | ) |
Add a new entry to the sorted lsit of floats.
Definition at line 24 of file sortflts.cpp.
00030 { 00031 SORTED_FLOAT *new_float = new SORTED_FLOAT (value, key); 00032 00033 if (list.empty ()) 00034 it.add_after_stay_put (new_float); 00035 else { 00036 it.move_to_first (); 00037 while (!it.at_last () && it.data ()->entry < value) 00038 it.forward (); 00039 if (it.data ()->entry < value) 00040 it.add_after_stay_put (new_float); 00041 else 00042 it.add_before_stay_put (new_float); 00043 } 00044 }