A simple way to store test vectors (for stimulus or from responses) More...
#include "test.h"
Public Member Functions | |
TestVectors () | |
Constructor. | |
TestVectors (const TestVectors &)=delete | |
virtual | ~TestVectors () |
Virtual destructor. | |
std::size_t | Add (T vector) |
std::vector< T >::iterator | begin () |
std::vector< T >::const_iterator | begin () const |
std::vector< T >::iterator | end () |
std::vector< T >::const_iterator | end () const |
T | Get (std::size_t i) const |
Get the i'th test vector. | |
std::size_t | GetN () const |
Get the total number of test vectors. | |
TestVectors & | operator= (const TestVectors &)=delete |
void | Reserve (uint32_t reserve) |
Set the expected length of this vector. | |
Private Types | |
typedef std::vector< T > | TestVector |
Container type. | |
Private Attributes | |
TestVector | m_vectors |
The list of test vectors. | |
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 1446 of file test.h.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCaseCsma::DoRun(), Ns3TcpSocketTestCaseP2P::DoRun(), Ns3TcpNoDelayTestCase::SinkRx(), Ns3TcpSocketTestCaseCsma::SinkRx(), and Ns3TcpSocketTestCaseP2P::SinkRx().
|
inline |
|
inline |
|
inline |
Definition at line 1400 of file test.h.
Referenced by grid.TimelinesRenderer::draw_events(), and grid.TimelinesRenderer::draw_ranges().
|
inline |
Definition at line 1416 of file test.h.
Referenced by grid.TimelinesRenderer::draw_events(), and grid.TimelinesRenderer::draw_ranges().
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 1462 of file test.h.
References NS_ABORT_MSG_UNLESS.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCaseCsma::DoRun(), and Ns3TcpSocketTestCaseP2P::DoRun().
std::size_t ns3::TestVectors< T >::GetN | ( | ) | const |
Get the total number of test vectors.
Definition at line 1455 of file test.h.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCaseCsma::DoRun(), and Ns3TcpSocketTestCaseP2P::DoRun().
|
delete |
void ns3::TestVectors< T >::Reserve | ( | uint32_t | reserve | ) |
|
private |