A Discrete-Event Network Simulator
API
traced-value-callback-typedef-test-suite.cc File Reference

TracedValueCallback tests to verify that they work with different types of classes - it tests bool, double, various types of integers types, Time, and SequenceNumber32. More...

#include "ns3/test.h"
#include "ns3/core-module.h"
#include "ns3/network-module.h"
+ Include dependency graph for traced-value-callback-typedef-test-suite.cc:

Go to the source code of this file.

Classes

class  TracedValueCallbackTestCase::CheckTvCb< T >
 A class to check that the callback function typedef will actually connect to the TracedValue. More...
 
class  TracedValueCallbackTestCase
 TracedValueCallback Test Case. More...
 
class  TracedValueCallbackTestSuite
 TracedValueCallback TestSuite. More...
 

Namespaces

 anonymous_namespace{traced-value-callback-typedef-test-suite.cc}
 

Functions

template<typename T >
void anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TracedValueCbSink (T oldValue, T newValue)
 Template for TracedValue sink functions. More...
 
template<>
void anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TracedValueCbSink< SequenceNumber32 > (SequenceNumber32 oldValue, SequenceNumber32 newValue)
 TracedValueCbSink specialization for SequenceNumber32. More...
 
template<>
void anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TracedValueCbSink< Time > (Time oldValue, Time newValue)
 TracedValueCbSink specialization for Time. More...
 
Stringify the known TracedValue type names.
template<typename T >
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< bool > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< double > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< int16_t > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< int32_t > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< int64_t > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< int8_t > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< SequenceNumber32 > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< Time > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< uint16_t > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< uint32_t > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< uint64_t > (void)
 Generic template for unknown classes. More...
 
template<>
std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::TypeName< uint8_t > (void)
 Generic template for unknown classes. More...
 

Variables

std::string anonymous_namespace{traced-value-callback-typedef-test-suite.cc}::g_Result = ""
 Result of callback test. More...
 
static TracedValueCallbackTestSuite tracedValueCallbackTestSuite
 Static variable for test initialization. More...
 

Detailed Description

TracedValueCallback tests to verify that they work with different types of classes - it tests bool, double, various types of integers types, Time, and SequenceNumber32.

Definition in file traced-value-callback-typedef-test-suite.cc.

Variable Documentation

◆ tracedValueCallbackTestSuite

TracedValueCallbackTestSuite tracedValueCallbackTestSuite
static

Static variable for test initialization.

Definition at line 286 of file traced-value-callback-typedef-test-suite.cc.