20 #include "ns3/config.h" 
   22 #include "ns3/integer.h" 
   23 #include "ns3/traced-value.h" 
   24 #include "ns3/trace-source-accessor.h" 
   25 #include "ns3/callback.h" 
   27 #include "ns3/singleton.h" 
   28 #include "ns3/object.h" 
   29 #include "ns3/object-vector.h" 
   30 #include "ns3/names.h" 
   31 #include "ns3/pointer.h" 
   45   static TypeId GetTypeId (
void);
 
   53   int8_t GetA (
void) 
const;
 
   54   int8_t GetB (
void) 
const;
 
   71     .AddAttribute (
"NodesA", 
"",
 
   74                    MakeObjectVectorChecker<ConfigTestObject> ())
 
   75     .AddAttribute (
"NodesB", 
"",
 
   78                    MakeObjectVectorChecker<ConfigTestObject> ())
 
   79     .AddAttribute (
"NodeA", 
"",
 
   82                    MakePointerChecker<ConfigTestObject> ())
 
   83     .AddAttribute (
"NodeB", 
"",
 
   86                    MakePointerChecker<ConfigTestObject> ())
 
   87     .AddAttribute (
"A", 
"",
 
   90                    MakeIntegerChecker<int8_t> ())
 
   91     .AddAttribute (
"B", 
"",
 
   94                    MakeIntegerChecker<int8_t> ())
 
   95     .AddAttribute (
"Source", 
"XX",
 
   98                    MakeIntegerChecker<int16_t> ())
 
   99     .AddTraceSource (
"Source", 
"XX",
 
  120   m_nodesA.push_back (a);
 
  126   m_nodesB.push_back (b);
 
  147   static TypeId GetTypeId (
void);
 
  164   static TypeId GetTypeId (
void);
 
  177     .AddAttribute (
"X", 
"",
 
  180                    MakeIntegerChecker<int8_t> ())
 
  188   static TypeId GetTypeId (
void);
 
  213   virtual void DoRun (
void);
 
  217   : 
TestCase (
"Check ability to register a root namespace and use it")
 
  271   virtual void DoRun (
void);
 
  275   : 
TestCase (
"Check ability to register an object under the root namespace and use it")
 
  343   b->GetAttribute (
"B", iv);
 
  354   b->GetAttribute (
"A", iv);
 
  356   b->GetAttribute (
"B", iv);
 
  366   b->GetAttribute (
"A", iv);
 
  380   virtual void DoRun (
void);
 
  384   : 
TestCase (
"Check ability to configure vectors of Object using regular expressions")
 
  433   obj1->GetAttribute (
"A", iv);
 
  436   obj2->GetAttribute (
"A", iv);
 
  439   obj3->GetAttribute (
"A", iv);
 
  450   obj1->GetAttribute (
"A", iv);
 
  453   obj2->GetAttribute (
"A", iv);
 
  456   obj3->GetAttribute (
"A", iv);
 
  466   obj1->GetAttribute (
"A", iv);
 
  469   obj2->GetAttribute (
"A", iv);
 
  472   obj3->GetAttribute (
"A", iv);
 
  482   obj1->GetAttribute (
"A", iv);
 
  485   obj2->GetAttribute (
"A", iv);
 
  488   obj3->GetAttribute (
"A", iv);
 
  498   obj1->GetAttribute (
"A", iv);
 
  501   obj2->GetAttribute (
"A", iv);
 
  504   obj3->GetAttribute (
"A", iv);
 
  514   obj1->GetAttribute (
"A", iv);
 
  517   obj2->GetAttribute (
"A", iv);
 
  520   obj3->GetAttribute (
"A", iv);
 
  537   virtual void DoRun (
void);
 
  544   : 
TestCase (
"Check ability to trace connect through vectors of Object using regular expressions")
 
  685   virtual void DoRun (
void);
 
  690   : 
TestCase (
"Check that attributes of base class are searchable from paths including objects of derived class")
 
UnderRootNamespaceConfigTestCase()
 
Ptr< const AttributeAccessor > MakeObjectVectorAccessor(U T::*memberContainer)
 
virtual ~SearchAttributesOfParentObjectsTestCase()
 
Ptr< ConfigTestObject > m_nodeA
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
static ConfigTestSuite configTestSuite
 
Hold a signed integer type. 
 
void AddNodeA(Ptr< ConfigTestObject > a)
 
void Set(std::string path, const AttributeValue &value)
 
void Connect(std::string path, const CallbackBase &cb)
 
void AddNodeB(Ptr< ConfigTestObject > b)
 
virtual ~ObjectVectorConfigTestCase()
 
static TypeId GetTypeId(void)
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
static TypeId GetTypeId(void)
 
#define NS_TEST_ASSERT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report and abort if not. 
 
virtual ~RootNamespaceConfigTestCase()
 
static TypeId GetTypeId(void)
 
Callback< R > MakeCallback(R(T::*memPtr)(void), OBJ objPtr)
 
std::vector< Ptr< ConfigTestObject > > m_nodesA
 
RootNamespaceConfigTestCase()
 
DerivedConfigTestObject(void)
 
void AggregateObject(Ptr< Object > other)
 
virtual ~ObjectVectorTraceConfigTestCase()
 
virtual ~DerivedConfigObject(void)
 
Ptr< const TraceSourceAccessor > MakeTraceSourceAccessor(T a)
 
static TypeId GetTypeId(void)
 
virtual ~BaseConfigObject(void)
 
void GetAttribute(std::string name, AttributeValue &value) const 
 
Ptr< ConfigTestObject > m_nodeB
 
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual child TestCase case to this TestCase. 
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
DerivedConfigObject(void)
 
virtual ~DerivedConfigTestObject(void)
 
void RegisterRootNamespaceObject(Ptr< Object > obj)
 
ObjectVectorTraceConfigTestCase()
 
void TraceWithPath(std::string path, int16_t old, int16_t newValue)
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
a base class which provides memory management and object aggregation 
 
virtual ~UnderRootNamespaceConfigTestCase()
 
SearchAttributesOfParentObjectsTestCase()
 
contain a set of ns3::Object pointers. 
 
void SetNodeA(Ptr< ConfigTestObject > a)
 
ObjectVectorConfigTestCase()
 
void SetAttribute(std::string name, const AttributeValue &value)
 
a unique identifier for an interface. 
 
TypeId SetParent(TypeId tid)
 
virtual void DoRun(void)
Implementation to actually run this TestCase. 
 
void Trace(int16_t oldValue, int16_t newValue)
 
void ConnectWithoutContext(std::string path, const CallbackBase &cb)
 
void SetNodeB(Ptr< ConfigTestObject > b)
 
std::vector< Ptr< ConfigTestObject > > m_nodesB
 
TracedValue< int16_t > m_trace