A simple way to store test vectors (for stimulus or from responses) More...
#include "test.h"
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 1468 of file test.h.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCase1::DoRun(), NscTcpLossTestCase1::DoRun(), Ns3TcpSocketTestCase2::DoRun(), NscTcpLossTestCase2::DoRun(), Ns3TcpNoDelayTestCase::SinkRx(), Ns3TcpSocketTestCase1::SinkRx(), NscTcpLossTestCase1::SinkRx(), Ns3TcpSocketTestCase2::SinkRx(), and NscTcpLossTestCase2::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 1484 of file test.h.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCase1::DoRun(), NscTcpLossTestCase1::DoRun(), Ns3TcpSocketTestCase2::DoRun(), and NscTcpLossTestCase2::DoRun().
std::size_t ns3::TestVectors< T >::GetN | ( | void | ) | const |
Get the total number of test vectors.
Definition at line 1477 of file test.h.
Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCase1::DoRun(), NscTcpLossTestCase1::DoRun(), Ns3TcpSocketTestCase2::DoRun(), and NscTcpLossTestCase2::DoRun().
void ns3::TestVectors< T >::Reserve | ( | uint32_t | reserve | ) |
|
private |