A Discrete-Event Network Simulator
API
attribute-test-suite.cc File Reference

Attribute test suite. More...

#include "ns3/test.h"
#include "ns3/object.h"
#include "ns3/boolean.h"
#include "ns3/integer.h"
#include "ns3/uinteger.h"
#include "ns3/config.h"
#include "ns3/enum.h"
#include "ns3/string.h"
#include "ns3/random-variable-stream.h"
#include "ns3/double.h"
#include "ns3/object-vector.h"
#include "ns3/object-map.h"
#include "ns3/traced-value.h"
#include "ns3/callback.h"
#include "ns3/trace-source-accessor.h"
#include "ns3/pointer.h"
#include "ns3/object-factory.h"
#include "ns3/nstime.h"
+ Include dependency graph for attribute-test-suite.cc:

Go to the source code of this file.

Classes

class  AttributeObjectTest
 Class used to check attributes. More...
 
class  AttributesTestSuite
 The attributes Test Suite. More...
 
class  AttributeTestCase< T >
 Test case template used for generic Attribute Value types – used to make sure that Attributes work as expected. More...
 
class  CallbackValueTestCase
 Test the Attributes of type CallbackValue. More...
 
class  Derived
 Simple class derived from ns3::Object, used to check attribute constructors. More...
 
class  IntegerTraceSourceAttributeTestCase
 Trace sources with value semantics can be used like Attributes, make sure we can use them that way. More...
 
class  IntegerTraceSourceTestCase
 Trace sources used like Attributes must also work as trace sources, make sure we can use them that way. More...
 
class  ObjectMapAttributeTestCase
 Test case for Object Map Attributes. More...
 
class  ObjectVectorAttributeTestCase
 Test case for Object Vector Attributes. More...
 
class  PointerAttributeTestCase
 Smart pointers (Ptr) are central to our architecture, so they must work as attributes. More...
 
class  RandomVariableStreamAttributeTestCase
 Test the Attributes of type RandomVariableStream. More...
 
class  TracedCallbackTestCase
 Trace sources used like Attributes must also work as trace sources, make sure we can use them that way. More...
 
class  ns3::ValueClassTest
 Test class for TracedValue callbacks attributes. More...
 
class  ns3::ValueClassTestChecker
 AttributeChecker implementation for ValueClassTestValue. More...
 
class  ns3::ValueClassTestValue
 AttributeValue implementation for ValueClassTest. More...
 

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Functions

template<typename T1 >
Ptr< const AttributeAccessorns3::MakeValueClassTestAccessor (T1 a1)
 Create an AttributeAccessor for a class data member, or a lone class get functor or set method. More...
 
template<typename T1 , typename T2 >
Ptr< const AttributeAccessorns3::MakeValueClassTestAccessor (T1 a1, T2 a2)
 Create an AttributeAccessor using a pair of get functor and set methods from a class. More...
 
Ptr< const AttributeCheckerns3::MakeValueClassTestChecker (void)
 
bool ns3::operator!= ([[maybe_unused]] const ValueClassTest &a, [[maybe_unused]] const ValueClassTest &b)
 Operator not equal. More...
 
std::ostream & ns3::operator<< (std::ostream &os, [[maybe_unused]] ValueClassTest v)
 Stream insertion operator. More...
 
std::istream & ns3::operator>> (std::istream &is, [[maybe_unused]] ValueClassTest &v)
 Stream extraction operator. More...
 

Variables

static AttributesTestSuite g_attributesTestSuite
 Static variable for test initialization. More...
 

Detailed Description

Attribute test suite.

Definition in file attribute-test-suite.cc.

Variable Documentation

◆ g_attributesTestSuite

AttributesTestSuite g_attributesTestSuite
static

Static variable for test initialization.

Definition at line 1716 of file attribute-test-suite.cc.