A simple way to store test vectors (for stimulus or from responses) More...
#include "test.h"
Inheritance diagram for ns3::TestVectors< T >:
Collaboration diagram for ns3::TestVectors< T >:Public Member Functions | |
| TestVectors () | |
| Constructor. More... | |
| virtual | ~TestVectors () |
| Virtual destructor. More... | |
| std::size_t | Add (T vector) |
| T | Get (std::size_t i) const |
| Get the i'th test vector. More... | |
| std::size_t | GetN (void) const |
| Get the total number of test vectors. More... | |
| void | Reserve (uint32_t reserve) |
| Set the expected length of this vector. More... | |
Private Types | |
| typedef std::vector< T > | TestVector |
| Container type. More... | |
Private Attributes | |
| TestVector | m_vectors |
| The list of test vectors. More... | |
Additional Inherited Members | |
Private Member Functions inherited from ns3::NonCopyable | |
| NonCopyable () | |
| Constructor. More... | |
| ~NonCopyable () | |
| Destructor. More... | |
A simple way to store test vectors (for stimulus or from responses)
|
private |
| ns3::TestVectors< T >::TestVectors |
|
virtual |
| std::size_t ns3::TestVectors< T >::Add | ( | T | vector | ) |
| [in] | vector | The test vector to add |
Definition at line 1467 of file test.h.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCase1::DoRun(), Ns3TcpSocketTestCase2::DoRun(), NscTcpLossTestCase1::DoRun(), NscTcpLossTestCase2::DoRun(), Ns3TcpNoDelayTestCase::SinkRx(), Ns3TcpSocketTestCase1::SinkRx(), Ns3TcpSocketTestCase2::SinkRx(), NscTcpLossTestCase1::SinkRx(), and NscTcpLossTestCase2::SinkRx().
Here is the caller graph for this function:| T ns3::TestVectors< T >::Get | ( | std::size_t | i | ) | const |
Get the i'th test vector.
| [in] | i | The requested vector index |
Definition at line 1483 of file test.h.
References NS_ABORT_MSG_UNLESS.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCase1::DoRun(), Ns3TcpSocketTestCase2::DoRun(), NscTcpLossTestCase1::DoRun(), and NscTcpLossTestCase2::DoRun().
Here is the caller graph for this function:| std::size_t ns3::TestVectors< T >::GetN | ( | void | ) | const |
Get the total number of test vectors.
Definition at line 1476 of file test.h.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCase1::DoRun(), Ns3TcpSocketTestCase2::DoRun(), NscTcpLossTestCase1::DoRun(), and NscTcpLossTestCase2::DoRun().
Here is the caller graph for this function:| void ns3::TestVectors< T >::Reserve | ( | uint32_t | reserve | ) |
|
private |