On fre, 2007-06-15 at 10:31 +0100, Dave Shield wrote: > On 15/06/07, Magnus Fromreide <[EMAIL PROTECTED]> wrote: > > > Why did you choose to use the iterator helper? > > > > I managed to wrap my mind around that helper. > > > > One of table_data, table_tdata or even (shudder!) MfD > > > > Basically the problem is that I don't understand them enough to do what > > I wish to do. > > Leaving MfD on one side, the others are actually very similar to > the table_iterator. The differences are very localised.
Yes, the main problem seems to be the containers. It might be that I expect things that they never intended to provide but the word makes me expect something along the line of the C++ associative containers and I also expect the iterators to have C++-like properties but they most certainly don't have that. > > Please disregard the sysORTable patch for now, as I am working on a new > > one without iterators. > > I'll make an alternative suggestion. > Give me a couple of days, and I'll try to convert your iterator-based code > into an equivalent tdata-based version. Comparing the two should help > you get a better grasp of how these two approaches relate. I am actually doing that myself as I think that is the way to understand something, so unless you wish to make an alternative suggestion there is no need, but if you do I will probably compare both versions and try to understand the differences in design choises. What I really would appreciate is if someone could review my finished code once it is done. /MF ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
