get rid of Attribute class. Use AttributeValue subclasses directly.

This commit is contained in:
Mathieu Lacage committed 2008-04-17 13:42:25 -07:00
1 parent 1f50efa61d
commit f0cf30bdb7
132 files changed
+1345 -1628

No files matched your search

+2 -2
View File
@@ -32,7 +32,7 @@ TypeId DropTailQueue::GetTypeId (void)
.SetParent<Queue> ()
.AddConstructor<DropTailQueue> ()
.AddAttribute ("MaxPackets", "The maximum number of packets accepted by this DropTailQueue.",
Uinteger (100),
UintegerValue (100),
MakeUintegerAccessor (&DropTailQueue::m_maxPackets),
MakeUintegerChecker<uint32_t> ())
;
@@ -132,7 +132,7 @@ DropTailQueueTest::RunTests (void)
bool result = true;
Ptr<DropTailQueue> queue = CreateObject<DropTailQueue> ();
NS_TEST_ASSERT (queue->SetAttributeFailSafe ("MaxPackets", Uinteger (3)));
NS_TEST_ASSERT (queue->SetAttributeFailSafe ("MaxPackets", UintegerValue (3)));
Ptr<Packet> p1, p2, p3, p4;
p1 = Create<Packet> ();