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/nstime.h"
#include "ns3/object.h"
#include "ns3/sequence-number.h"
#include "ns3/test.h"
#include "ns3/traced-value.h"
#include "ns3/type-id.h"
#include "ns3/type-name.h"
#include <type_traits>
+ 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...
 

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 268 of file traced-value-callback-typedef-test-suite.cc.