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
}
Updated by Tian Song almost 11 years ago
- Status changed from In Progress to Code review
- % Done changed from 50 to 70
Updated by Junxiao Shi almost 11 years ago
- Status changed from Code review to Closed
- % Done changed from 70 to 100
Actions