A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 >:

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
 
void Reserve (uint32_t reserve)
 

Private Types

typedef std::vector< T > TestVector
 Container type. More...
 

Private Member Functions

 TestVectors (const TestVectors &tv)
 Copy constructor, private to block copying. More...
 
TestVectorsoperator= (const TestVectors &tv)
 Assignment, private to prevent copying. More...
 
bool operator== (const TestVectors &tv) const
 Comparison (unimplemented?) More...
 

Private Attributes

TestVector m_vectors
 The list of test vectors. 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 1083 of file test.h.

Member Typedef Documentation

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

Container type.

Definition at line 1131 of file test.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 1136 of file test.h.

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

Virtual desctructor.

Definition at line 1149 of file test.h.

template<typename T>
ns3::TestVectors< T >::TestVectors ( const TestVectors< T > &  tv)
private

Copy constructor, private to block copying.

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
ithe requested vector index
Returns
the requested vector

Definition at line 1171 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
Returns
the number of test vectors

Definition at line 1164 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>
TestVectors& ns3::TestVectors< T >::operator= ( const TestVectors< T > &  tv)
private

Assignment, private to prevent copying.

template<typename T>
bool ns3::TestVectors< T >::operator== ( const TestVectors< T > &  tv) const
private

Comparison (unimplemented?)

template<typename T >
void ns3::TestVectors< T >::Reserve ( uint32_t  reserve)
Parameters
reservethe number of entries to reserve

Definition at line 1143 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 1132 of file test.h.


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