| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| * Copyright (C) 2014 Named Data Networking Project |
| * See COPYING for copyright and distribution information. |
| #ifndef NFD_TABLE_FIB_ENTRY_HPP |
| #define NFD_TABLE_FIB_ENTRY_HPP |
| #include "fib-nexthop.hpp" |
| * \brief represents a collection of nexthops |
| * This type has these methods: |
| * iterator<NextHop> begin() |
| * iterator<NextHop> end() |
| typedef std::vector<fib::NextHop> NextHopList; |
| * \brief represents a FIB entry |
| class Entry : noncopyable |
| Entry(const Name& prefix); |
| /** \brief gives the nexthops explicitly defined on this entry |
| * This list does not include inherited nexthops. |
| addNextHop(shared_ptr<Face> face, int32_t cost); |
| removeNextHop(shared_ptr<Face> face); |
| /// sorts the nexthop list |
| inline const NextHopList& |
| Entry::getNextHops() const |
| #endif // NFD_TABLE_FIB_ENTRY_HPP |