#include "mpi-test-fixtures.h"
| Static Public Member Functions | |
| static std::string | FormatAddress (const ns3::Address address) | 
| Get the source address and port, as a formatted string.  More... | |
| static int | GetLineCount (void) | 
| Get current line count and increment.  More... | |
| static int | GetWorldRank (void) | 
| Get the MPI rank in the world communicator.  More... | |
| static int | GetWorldSize (void) | 
| Get the MPI size of the world communicator.  More... | |
| static void | Init (void) | 
| PacketSink receive trace callback.  More... | |
| static void | SinkTrace (const ns3::Ptr< const ns3::Packet > packet, const ns3::Address &srcAddress, const ns3::Address &destAddress) | 
| PacketSink receive trace callback.  More... | |
| static void | Verify (unsigned long expectedCount) | 
| Verify the sink trace count observed matches the expected count.  More... | |
| Static Private Attributes | |
| static unsigned long | m_line = 0 | 
| static unsigned long | m_sinkCount = 0 | 
| static int | m_worldRank = -1 | 
| static int | m_worldSize = -1 | 
Definition at line 75 of file mpi-test-fixtures.h.
| 
 | static | 
Get the source address and port, as a formatted string.
| [in] | address | The ns3::Address. | 
Definition at line 80 of file mpi-test-fixtures.cc.
References first::address, ns3::Inet6SocketAddress::ConvertFrom(), ns3::InetSocketAddress::ConvertFrom(), ns3::InetSocketAddress::GetIpv4(), ns3::Inet6SocketAddress::GetIpv6(), ns3::InetSocketAddress::GetPort(), ns3::Inet6SocketAddress::GetPort(), ns3::Inet6SocketAddress::IsMatchingType(), and ns3::InetSocketAddress::IsMatchingType().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | inlinestatic | 
Get current line count and increment.
Definition at line 131 of file mpi-test-fixtures.h.
References m_line.
| 
 | inlinestatic | 
Get the MPI rank in the world communicator.
Definition at line 112 of file mpi-test-fixtures.h.
References m_worldRank.
Referenced by ReportRank().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inlinestatic | 
Get the MPI size of the world communicator.
Definition at line 122 of file mpi-test-fixtures.h.
References m_worldSize.
Referenced by ReportRank().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
PacketSink receive trace callback.
| [in] | packet | The packet. | 
| [in] | srcAddress | The source address. | 
| [in] | destAddress | The destination address. | 
Definition at line 40 of file mpi-test-fixtures.cc.
References m_line, m_sinkCount, m_worldRank, and m_worldSize.
| 
 | static | 
PacketSink receive trace callback.
| [in] | packet | The packet. | 
| [in] | srcAddress | The source address. | 
| [in] | destAddress | The destination address. | 
Definition at line 50 of file mpi-test-fixtures.cc.
References m_sinkCount.
| 
 | static | 
Verify the sink trace count observed matches the expected count.
Prints message to std::cout indicating success or fail.
Definition at line 58 of file mpi-test-fixtures.cc.
References m_sinkCount, and RANK0COUT.
| 
 | staticprivate | 
Definition at line 138 of file mpi-test-fixtures.h.
Referenced by GetLineCount(), and Init().
| 
 | staticprivate | 
Definition at line 137 of file mpi-test-fixtures.h.
Referenced by Init(), SinkTrace(), and Verify().
| 
 | staticprivate | 
Definition at line 139 of file mpi-test-fixtures.h.
Referenced by GetWorldRank(), and Init().
| 
 | staticprivate | 
Definition at line 140 of file mpi-test-fixtures.h.
Referenced by GetWorldSize(), and Init().