SatCat5
satcat5::ip::RouteArray Class Reference

Detailed Description

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>

Inheritance diagram for satcat5::ip::RouteArray:
[legend]
Collaboration diagram for satcat5::ip::RouteArray:
[legend]

Protected Member Functions

 RouteArray ()
 Create an empty table.
 
const satcat5::ip::Routeroute_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::Routeroute_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]
 

Member Function Documentation

◆ route_rddef()

const satcat5::ip::Route& satcat5::ip::RouteArray::route_rddef ( ) const
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.

◆ route_read()

const satcat5::ip::Route& satcat5::ip::RouteArray::route_read ( unsigned  idx) const
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.

◆ route_wrdef()

bool RouteArray::route_wrdef ( const satcat5::ip::Route route)
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.

◆ route_write()

bool RouteArray::route_write ( unsigned  idx,
const satcat5::ip::Route route 
)
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.


The documentation for this class was generated from the following files: