#include <static_map.h>
Nevrax France
Definition at line 57 of file static_map.h.
|
Definition at line 93 of file static_map.h. |
|
Definition at line 91 of file static_map.h. |
|
Definition at line 95 of file static_map.h. |
|
Definition at line 61 of file static_map.h. |
|
Definition at line 97 of file static_map.h. |
|
Definition at line 92 of file static_map.h. |
|
Definition at line 64 of file static_map.h. |
|
Definition at line 60 of file static_map.h. |
|
Definition at line 62 of file static_map.h. |
|
Definition at line 90 of file static_map.h. |
|
Definition at line 94 of file static_map.h. |
|
Definition at line 96 of file static_map.h. |
|
Definition at line 63 of file static_map.h. |
|
Definition at line 101 of file static_map.h.
00101 : _DataSorted(true) 00102 { 00103 } |
|
Definition at line 105 of file static_map.h.
00105 : _DataSorted(true) 00106 { 00107 } |
|
Definition at line 109 of file static_map.h.
00110 { 00111 _DataSorted = false; 00112 _Data.insert(__first, __last); 00113 endAdd(); 00114 } |
|
Definition at line 116 of file static_map.h.
00117 : _CompFunc(__comp) 00118 { 00119 _DataSorted = false; 00120 _Data.insert(__first, __last); 00121 endAdd(); 00122 } |
|
Definition at line 124 of file static_map.h.
00125 : _Data(__x._Data) , _DataSorted(__x._DataSorted), _CompFunc(__x._CompFunc) 00126 { 00127 } |
|
Definition at line 173 of file static_map.h.
00174 { 00175 _DataSorted = false; 00176 _Data.push_back (__v); 00177 } |
|
Definition at line 141 of file static_map.h.
00141 { return _Data.begin(); } |
|
Definition at line 140 of file static_map.h.
00140 { return _Data.begin(); } |
|
Definition at line 213 of file static_map.h.
00214 { 00215 _Data.clear(); 00216 } |
|
Definition at line 242 of file static_map.h.
|
|
Definition at line 208 of file static_map.h.
00209 { 00210 _Data.erase (__first, __last); 00211 } |
|
Definition at line 203 of file static_map.h.
00204 { 00205 return _Data.erase (__x); 00206 } |
|
Definition at line 198 of file static_map.h.
00199 { 00200 _Data.erase (__position); 00201 } |
|
Definition at line 148 of file static_map.h.
00148 { return _Data.empty(); } |
|
Definition at line 143 of file static_map.h.
00143 { return _Data.end(); } |
|
Definition at line 142 of file static_map.h. Referenced by NLMISC::CStaticMap< uint32, CChar >::find(), and NLMISC::CStaticMap< uint32, CChar >::operator[]().
00142 { return _Data.end(); } |
|
Definition at line 189 of file static_map.h. Referenced by NLMISC::CStaticMap< uint32, CChar >::count(), NLMISC::CStaticMap< uint32, CChar >::CStaticMap(), NLMISC::CStaticMap< uint32, CChar >::find(), and NLMISC::CStaticMap< uint32, CChar >::operator=().
00190 { 00191 if (_DataSorted) return; 00192 _DataSorted = true; 00193 sort (_Data.begin(), _Data.end(), value_comp()); // Sort the vector 00194 } |
|
Definition at line 231 of file static_map.h.
00232 { 00233 endAdd(); 00234 value_type __v(__x, Typ()); 00235 iterator it = lower_bound((const_iterator)_Data.begin(), (const_iterator)_Data.end(), __v, value_comp()); 00236 if ((it != end()) && (!value_comp()(*it,__v) && !value_comp()(__v,*it))) 00237 return it; 00238 else 00239 return end(); 00240 } |
|
Definition at line 220 of file static_map.h. Referenced by NLMISC::CStaticMap< uint32, CChar >::count(), and NLMISC::CStaticMap< uint32, CChar >::operator[]().
00221 { 00222 endAdd(); 00223 value_type __v(__x, Typ()); 00224 iterator it = lower_bound((iterator)_Data.begin(), (iterator)_Data.end(), __v, value_comp()); 00225 if ((it != end()) && (!value_comp()(*it,__v) && !value_comp()(__v,*it))) 00226 return it; 00227 else 00228 return end(); 00229 } |
|
Definition at line 179 of file static_map.h.
00180 { 00181 _DataSorted = false; 00182 _Data.reserve(m.size()); 00183 typename std::map<Key,Typ,Comp>::const_iterator itEnd = m.end(); 00184 typename std::map<Key,Typ,Comp>::const_iterator it = m.begin(); 00185 for (; it != itEnd; it++) 00186 _Data.push_back (std::pair<Key, Typ>::pair(it->first, it->second)); 00187 } |
|
Definition at line 138 of file static_map.h.
00138 { return _Data.key_comp(); } |
|
Definition at line 150 of file static_map.h.
00150 { return _Data.max_size(); } |
|
Definition at line 129 of file static_map.h.
|
|
Definition at line 152 of file static_map.h.
|
|
Definition at line 145 of file static_map.h.
00145 { return _Data.rbegin(); } |
|
Definition at line 144 of file static_map.h.
00144 { return _Data.rbegin(); } |
|
Definition at line 147 of file static_map.h.
00147 { return _Data.rend(); } |
|
Definition at line 146 of file static_map.h.
00146 { return _Data.rend(); } |
|
Definition at line 168 of file static_map.h.
00169 { 00170 _Data.reserve(n); 00171 } |
|
Definition at line 149 of file static_map.h.
00149 { return _Data.size(); } |
|
Definition at line 160 of file static_map.h.
00161 { 00162 _Data.swap (__x._Data); 00163 _DataSorted = false; 00164 } |
|
Definition at line 139 of file static_map.h. Referenced by NLMISC::CStaticMap< uint32, CChar >::endAdd(), and NLMISC::CStaticMap< uint32, CChar >::find().
00139 { return value_compare(_CompFunc); }
|
|
Definition at line 85 of file static_map.h. |
|
Definition at line 83 of file static_map.h. Referenced by NLMISC::CStaticMap< uint32, CChar >::operator=(), and NLMISC::CStaticMap< uint32, CChar >::swap(). |
|
Definition at line 84 of file static_map.h. |