template<class keytype, class type>
void FX::QDictBase< keytype, type >::insert ( FXuint  h,
const keytype &  k,
type *  d 
) [inline, protected, inherited]

Definition at line 148 of file qdictbase.h.

Referenced by FX::QDictBase< keytype, type >::append(), FX::QPtrDict< type >::insert(), FX::QHostAddressDict< type >::insert(), FX::QDict< type >::insert(), and FX::QDictBase< FX::FXString, type >::replace().

00149     {
00150         keyitemlist &kil=dict[mkIdx(h, mysize)];
00151         typename keyitemlist::iterator it=kil.find(k);
00152         FXEXCEPTION_STL1 {
00153             if(it==kil.end())
00154             {
00155                 std::pair<typename keyitemlist::iterator, bool> point=kil.insert(keyitem(k, hashitemlist(h, itemlist())));
00156                 it=point.first;
00157             }
00158             keyitem &ki=*it;
00159             itemlist &il=ki.second.second;
00160             il.push_back(d);
00161         } FXEXCEPTION_STL2;
00162         items++;
00163         inserts++;
00164     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:42 2009 for TnFOX by doxygen v1.4.7