A Discrete-Event Network Simulator
API
ns3::TestVectors< T > Class Template Reference

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 desctructor. More...
 
uint32_t Add (T vector)
 
Get (uint32_t i) const
 Get the i'th test vector. More...
 
uint32_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...
 

Detailed Description

template<typename T>
class ns3::TestVectors< T >

A simple way to store test vectors (for stimulus or from responses)

Definition at line 1396 of file test.h.

Member Typedef Documentation

template<typename T>
typedef std::vector<T> ns3::TestVectors< T >::TestVector
private

Container type.

Definition at line 1435 of file test.h.

Constructor & Destructor Documentation

template<typename T >
ns3::TestVectors< T >::TestVectors ( )

Constructor.

Definition at line 1440 of file test.h.

template<typename T >
ns3::TestVectors< T >::~TestVectors ( )
virtual

Virtual desctructor.

Definition at line 1453 of file test.h.

Member Function Documentation

template<typename T>
uint32_t ns3::TestVectors< T >::Add ( vector)
template<typename T >
T ns3::TestVectors< T >::Get ( uint32_t  i) const

Get the i'th test vector.

Parameters
[in]iThe requested vector index
Returns
The requested vector

Definition at line 1475 of file test.h.

References NS_ABORT_MSG_UNLESS.

Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCase1::DoRun(), NscTcpLossTestCase1::DoRun(), Ns3TcpSocketTestCase2::DoRun(), and NscTcpLossTestCase2::DoRun().

+ Here is the caller graph for this function:

template<typename T >
uint32_t ns3::TestVectors< T >::GetN ( void  ) const

Get the total number of test vectors.

Returns
The number of test vectors

Definition at line 1468 of file test.h.

Referenced by Ns3TcpNoDelayTestCase::DoRun(), Ns3TcpSocketTestCase1::DoRun(), NscTcpLossTestCase1::DoRun(), Ns3TcpSocketTestCase2::DoRun(), and NscTcpLossTestCase2::DoRun().

+ Here is the caller graph for this function:

template<typename T >
void ns3::TestVectors< T >::Reserve ( uint32_t  reserve)

Set the expected length of this vector.

Parameters
[in]reserveThe number of entries to reserve

Definition at line 1447 of file test.h.

Member Data Documentation

template<typename T>
TestVector ns3::TestVectors< T >::m_vectors
private

The list of test vectors.

Definition at line 1436 of file test.h.


The documentation for this class was generated from the following file: