[Click] How to remove a row from a HashMap table

Harald Schiöberg harald at net.t-labs.tu-berlin.de
Mon Sep 22 04:41:21 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

sendoa vaz wrote:
> What I would like to do is to find a row giving the values of EtherAddress,
> _vlan,port, priority and Timestamp and remove that row. I am trying to
> rewrite a new remove function from the one which is in the bighashmap.cc but
> the problem is that I don't know how to compare the values from the AddrInfo
> field.

Why don't you declare this explicitly as function of the specialization
class of HashMap, since it seems only usefull if you are actually
storing AddrInfo anyway.

template <class K>
bool
HashMap<K, AddrInfo>::remove_eth(const K &key,const AddrInfo &value)
{
...
}



- --
Harald Schiöberg
Technische Universität Berlin | T-Laboratories | FG INET
www: http://www.net.t-labs.tu-berlin.de
Phone: +49-(0)30-8353-58476 | Fax: +49-(0)391 534 783 47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI11oxJgyxs71kcx4RAveUAJ98p9J6U+5QnPDKNmBOxRmwWYWzCACgmFmh
dekW1MO2iAXwPw6jZH/cieo=
=q3ER
-----END PGP SIGNATURE-----



More information about the click mailing list