BDict< Type > Class Template Reference

#include <BDict.h>

Inheritance diagram for BDict< Type >:
BList< BDictItem< Type > >

List of all members.

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 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

template<class Type>
class BDict< Type >


Member Typedef Documentation

template<class Type>
typedef BIter BDict< Type >::iterator

Constructor & Destructor Documentation

template<class Type >
BDict< Type >::BDict ( int  hashSize = 100  )  [inline]
template<class Type>
BDict< Type >::BDict ( const BDict< Type > &  dict  )  [inline]

Member Function Documentation

template<class Type >
void BDict< Type >::clear (  )  [inline, virtual]

Clear the list.

Reimplemented from BList< BDictItem< Type > >.

template<class Type >
void BDict< Type >::del ( BIter i  )  [inline, virtual]

Delete specified item.

Reimplemented from BList< BDictItem< Type > >.

template<class Type >
void BDict< Type >::del ( const BString k  )  [inline]
template<class Type >
BIter BDict< Type >::find ( const BString k  )  const [inline]
template<class Type >
void BDict< Type >::hashAdd ( const BString k,
BIter  iter 
) [inline, private]
template<class Type >
void BDict< Type >::hashDelete ( const BString k,
BIter  iter 
) [inline, private]
template<class Type >
int BDict< Type >::hashFind ( const BString k,
BIter iter 
) const [inline, private]
template<class Type >
void BDict< Type >::hashPrint (  )  [inline]
template<class Type >
int BDict< Type >::hasKey ( const BString k  )  const [inline]
template<class Type>
void BDict< Type >::insert ( BIter i,
const BDictItem< Type > &  item 
) [inline, virtual]

Insert item before item.

Reimplemented from BList< BDictItem< Type > >.

template<class Type >
BString BDict< Type >::key ( const BIter i  )  const [inline]
template<class Type>
BDict< Type > BDict< Type >::operator+ ( const BDict< Type > &  dict  )  const [inline]

Reimplemented from BList< BDictItem< Type > >.

template<class Type>
BDict< Type > & BDict< Type >::operator= ( const BDict< Type > &  dict  )  [inline]

Reimplemented from BList< BDictItem< Type > >.

template<class Type >
const Type & BDict< Type >::operator[] ( const BIter i  )  const [inline]

Reimplemented from BList< BDictItem< Type > >.

template<class Type >
Type & BDict< Type >::operator[] ( const BIter i  )  [inline]
template<class Type >
Type & BDict< Type >::operator[] ( const BString i  )  [inline]

Member Data Documentation

template<class Type>
BArray<BList<BIter> > BDict< Type >::ohashLists [private]
template<class Type>
int BDict< Type >::ohashSize [private]

The documentation for this class was generated from the following file:

Generated on 3 Oct 2012 for LibBeamApi by  doxygen 1.6.1