Actions
Task #1315
closedFIB enumeration
Description
Allow enumerating FIB entries.
API¶
class Fib
{
public:
typedef ... const_iterator; // iterator of shared_ptr<fib::Entry>
const_iterator begin() const;
const_iterator end() const;
};
Usage example:
Fib fib(...);
for (Fib::const_iterator it = fib.begin(); it != fib.end(); ++it) {
const shared_ptr<fib::Entry>& fibEntry = *it;
// do something with fibEntry
}
Actions