#include <BDict.h>
Public Types | |
| typedef BIter | iterator |
Public Member Functions | |
| BDict (int hashSize=100) | |
| BDict (const BDict< Type > &dict) | |
| int | hasKey (const BString &k) const |
| BString | key (const BIter &i) const |
| void | clear () |
| Clear the list. | |
| void | insert (BIter &i, const BDictItem< Type > &item) |
| Insert item before item. | |
| void | append (const BDictItem< Type > &item) |
| Append item to list. | |
| void | append (const BDict< Type > &dict) |
| Append list to list. | |
| void | del (const BString &k) |
| void | del (BIter &i) |
| Delete specified item. | |
| BIter | find (const BString &k) const |
| Type & | operator[] (const BString &i) |
| Type & | operator[] (const BIter &i) |
| const Type & | operator[] (const BIter &i) const |
| BDict< Type > | operator+ (const BDict< Type > &dict) const |
| BDict< Type > & | operator= (const BDict< Type > &dict) |
| void | hashPrint () |
Private Member Functions | |
| void | hashAdd (const BString &k, BIter iter) |
| void | hashDelete (const BString &k, BIter iter) |
| int | hashFind (const BString &k, BIter &iter) const |
Private Attributes | |
| int | ohashSize |
| BArray< BList< BIter > > | ohashLists |
Append list to list.
Reimplemented from BList< BDictItem< Type > >.
Append item to list.
Reimplemented from BList< BDictItem< Type > >.
| void BDict< Type >::clear | ( | ) | [inline, virtual] |
Clear the list.
Reimplemented from BList< BDictItem< Type > >.
Delete specified item.
Reimplemented from BList< BDictItem< Type > >.
| void BDict< Type >::hashAdd | ( | const BString & | k, | |
| BIter | iter | |||
| ) | [inline, private] |
| void BDict< Type >::hashDelete | ( | const BString & | k, | |
| BIter | iter | |||
| ) | [inline, private] |
| int BDict< Type >::hashFind | ( | const BString & | k, | |
| BIter & | iter | |||
| ) | const [inline, private] |
| void BDict< Type >::hashPrint | ( | ) | [inline] |
| void BDict< Type >::insert | ( | BIter & | i, | |
| const BDictItem< Type > & | item | |||
| ) | [inline, virtual] |
Insert item before item.
Reimplemented from BList< BDictItem< Type > >.
| BDict< Type > BDict< Type >::operator+ | ( | const BDict< Type > & | dict | ) | const [inline] |
Reimplemented from BList< BDictItem< Type > >.
| BDict< Type > & BDict< Type >::operator= | ( | const BDict< Type > & | dict | ) | [inline] |
Reimplemented from BList< BDictItem< Type > >.
Reimplemented from BList< BDictItem< Type > >.
BArray<BList<BIter> > BDict< Type >::ohashLists [private] |
1.6.1