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

Record in this TypeId the fact that a new attribute exists. More...

#include <iostream>
#include <iomanip>
#include <ctime>
#include "ns3/integer.h"
#include "ns3/double.h"
#include "ns3/object.h"
#include "ns3/traced-value.h"
#include "ns3/type-id.h"
#include "ns3/test.h"
#include "ns3/log.h"
#include "ns3/unused.h"
+ Include dependency graph for type-id-test-suite.cc:

Go to the source code of this file.

Classes

class  CollisionTestCase
 
class  DeprecatedAttribute
 
class  DeprecatedAttributeTestCase
 
class  LookupTimeTestCase
 
class  TypeIdPerformanceSuite
 
class  TypeIdTestSuite
 
class  UniqueTypeIdTestCase
 

Functions

const std::string suite ("type-id: ")
 

Variables

static TypeIdPerformanceSuite g_TypeIdPerformanceSuite
 
static TypeIdTestSuite g_TypeIdTestSuite
 

Detailed Description

Record in this TypeId the fact that a new attribute exists.

Record a new TraceSource.

Parameters
[in]nameThe name of the new attribute
[in]helpSome help text which describes the purpose of this attribute.
[in]initialValueThe initial value for this attribute.
[in]accessorAn instance of the associated AttributeAccessor subclass.
[in]checkerAn instance of the associated AttributeChecker subclass.
[in]supportLevelSupport/deprecation status of the attribute.
[in]supportMsgUpgrade hint if this attribute is no longer supported. If the attribute is DEPRECATED the attribute behavior still exists, but user code should be updated following guidance in the hint.. If the attribute is OBSOLETE, the hint should indicate which class the attribute functional has been moved to, or that the functionality is no longer supported. See test file for examples.
Returns
This TypeId instance
Parameters
[in]nameThe name of the new trace source
[in]helpSome help text which describes the purpose of this trace source.
[in]accessorA pointer to a TraceSourceAccessor which can be used to connect/disconnect sinks to this trace source.
[in]callbackFully qualified typedef name for the callback signature. Generally this should begin with the "ns3::" namespace qualifier.
[in]supportLevelSupport/deprecation status of the attribute.
[in]supportMsgUpgrade hint if this attribute is no longer supported. If the attribute is DEPRECATED the attribute behavior still exists, but user code should be updated following guidance in the hint.. If the attribute is OBSOLETE, the hint should indicate which class the attribute functional has been moved to, or that the functionality is no longer supported. See test file for examples.
Returns
This TypeId instance.

Definition in file type-id-test-suite.cc.

Function Documentation

const std::string suite ( "type-id: "  )

Variable Documentation

TypeIdPerformanceSuite g_TypeIdPerformanceSuite
static

Definition at line 457 of file type-id-test-suite.cc.

TypeIdTestSuite g_TypeIdTestSuite
static

Definition at line 442 of file type-id-test-suite.cc.