The public API is very minimal. User scripts include the following:
#include "ns3/global-route-manager.h"
After IP addresses are configured, the following function call will cause all of the nodes that have an Ipv4 interface to receive forwarding tables entered automatically by the GlobalRouteManager:
GlobalRouteManager::PopulateRoutingTables ();