add ObjectVector::GetItemTypeId

This commit is contained in:
Mathieu Lacage
2008-04-09 14:58:52 -07:00
parent dc271270a8
commit a75e91cc03
8 changed files with 53 additions and 13 deletions

View File

@@ -39,11 +39,11 @@ Node::GetTypeId (void)
.AddAttribute ("DeviceList", "The list of devices associated to this Node.",
ObjectVector (),
MakeObjectVectorAccessor (&Node::m_devices),
MakeObjectVectorChecker ())
MakeObjectVectorChecker<NetDevice> ())
.AddAttribute ("ApplicationList", "The list of applications associated to this Node.",
ObjectVector (),
MakeObjectVectorAccessor (&Node::m_applications),
MakeObjectVectorChecker ())
MakeObjectVectorChecker<Application> ())
.AddAttribute ("Id", "The id (unique integer) of this Node.",
TypeId::ATTR_GET, // allow only getting it.
Uinteger (0),