|
SatCat5
|
An array of routes with read and write accessors.
SatCat5 routing-table concepts. This is the parent for ip::Table, which is the main class of interest. The reason to separate ip::RouteArray is to enforce indirect table access through route_rddef and route_wrdef. Grandchild classes such as router2::Table may override those methods to synchronize table changes.
Definition at line 111 of file ip_table.h.
#include <ip_table.h>
Protected Member Functions | |
| RouteArray () | |
| Create an empty table. | |
| const satcat5::ip::Route & | route_rddef () const |
| Internal methods used to access "m_route_default". More... | |
| virtual bool | route_wrdef (const satcat5::ip::Route &route) |
| Internal methods used to access "m_route_default". More... | |
| const satcat5::ip::Route & | route_read (unsigned idx) const |
| Internal methods used to access "m_route_table". More... | |
| virtual bool | route_write (unsigned idx, const satcat5::ip::Route &route) |
| Internal methods used to access "m_route_table". More... | |
Private Attributes | |
| satcat5::ip::Route | m_route_default |
| satcat5::ip::Route | m_route_table [SATCAT5_ROUTING_TABLE] |
|
inlineprotected |
Internal methods used to access "m_route_default".
Child classes may override this to implement mirroring.
Definition at line 119 of file ip_table.h.
|
inlineprotected |
Internal methods used to access "m_route_table".
Child classes may override route_write() to implement mirroring.
Definition at line 127 of file ip_table.h.
|
protectedvirtual |
Internal methods used to access "m_route_default".
Child classes may override this to implement mirroring.
Reimplemented in satcat5::router2::Table.
Definition at line 229 of file ip_table.cc.
|
protectedvirtual |
Internal methods used to access "m_route_table".
Child classes may override route_write() to implement mirroring.
Reimplemented in satcat5::router2::Table.
Definition at line 234 of file ip_table.cc.