add ObjectVector::GetItemTypeId
This commit is contained in:
1 parent
419140145a
commit
10ca6fdcd7
8 files changed
+53
-13
No files matched your search
@@ -63,7 +63,7 @@ NodeListPriv::GetTypeId (void)
|
||||
.AddAttribute ("NodeList", "The list of all nodes created during the simulation.",
|
||||
ObjectVector (),
|
||||
MakeObjectVectorAccessor (&NodeListPriv::m_nodes),
|
||||
MakeObjectVectorChecker ())
|
||||
MakeObjectVectorChecker<Node> ())
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
|
||||
+2
-2
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user