A simple way to store test vectors (for stimulus or from responses) More...
#include "test.h"
Public Member Functions | |
TestVectors () | |
Constructor. More... | |
TestVectors (const TestVectors &)=delete | |
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... | |
TestVectors & | operator= (const TestVectors &)=delete |
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... | |
A simple way to store test vectors (for stimulus or from responses)
|
private |
ns3::TestVectors< T >::TestVectors |
|
virtual |
|
delete |
std::size_t ns3::TestVectors< T >::Add | ( | T | vector | ) |
[in] | vector | The test vector to add |
Definition at line 1315 of file test.h.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCaseP2P::DoRun(), Ns3TcpSocketTestCaseCsma::DoRun(), Ns3TcpNoDelayTestCase::SinkRx(), Ns3TcpSocketTestCaseP2P::SinkRx(), and Ns3TcpSocketTestCaseCsma::SinkRx().
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 1331 of file test.h.
References NS_ABORT_MSG_UNLESS.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCaseP2P::DoRun(), and Ns3TcpSocketTestCaseCsma::DoRun().
std::size_t ns3::TestVectors< T >::GetN | ( | void | ) | const |
Get the total number of test vectors.
Definition at line 1324 of file test.h.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCaseP2P::DoRun(), and Ns3TcpSocketTestCaseCsma::DoRun().
|
delete |
void ns3::TestVectors< T >::Reserve | ( | uint32_t | reserve | ) |
|
private |