--- a/src/common/packet.cc Fri Mar 21 13:24:15 2008 -0700
+++ b/src/common/packet.cc Fri Mar 21 13:41:16 2008 -0700
@@ -308,14 +308,14 @@
Chunk *chunk = dynamic_cast<Chunk *> (instance);
NS_ASSERT (chunk != 0);
chunk->Deserialize (item.current);
- for (uint32_t j = 0; j < item.tid.GetAttributeListN (); j++)
+ for (uint32_t j = 0; j < item.tid.GetAttributeN (); j++)
{
std::string attrName = item.tid.GetAttributeName (j);
std::string value;
bool ok = chunk->GetAttribute (attrName, value);
NS_ASSERT (ok);
os << attrName << "=" << value;
- if ((j + 1) < item.tid.GetAttributeListN ())
+ if ((j + 1) < item.tid.GetAttributeN ())
{
os << ",";
}
--- a/src/core/attribute-list.cc Fri Mar 21 13:24:15 2008 -0700
+++ b/src/core/attribute-list.cc Fri Mar 21 13:41:16 2008 -0700
@@ -171,7 +171,7 @@
for (uint32_t i = 0; i < TypeId::GetRegisteredN (); i++)
{
TypeId tid = TypeId::GetRegistered (i);
- for (uint32_t j = 0; j < tid.GetAttributeListN (); j++)
+ for (uint32_t j = 0; j < tid.GetAttributeN (); j++)
{
if (checker == tid.GetAttributeChecker (j))
{
--- a/src/core/command-line.cc Fri Mar 21 13:24:15 2008 -0700
+++ b/src/core/command-line.cc Fri Mar 21 13:41:16 2008 -0700
@@ -124,7 +124,7 @@
{
NS_FATAL_ERROR ("Unknown type="<<type<<" in --PrintAttributes");
}
- for (uint32_t i = 0; i < tid.GetAttributeListN (); ++i)
+ for (uint32_t i = 0; i < tid.GetAttributeN (); ++i)
{
std::cout << " --"<<tid.GetAttributeFullName (i)<<"=[";
Ptr<const AttributeChecker> checker = tid.GetAttributeChecker (i);
--- a/src/core/object-base.cc Fri Mar 21 13:24:15 2008 -0700
+++ b/src/core/object-base.cc Fri Mar 21 13:41:16 2008 -0700
@@ -36,8 +36,8 @@
TypeId tid = GetInstanceTypeId ();
do {
// loop over all attributes in object type
- NS_LOG_DEBUG ("construct tid="<<tid.GetName ()<<", params="<<tid.GetAttributeListN ());
- for (uint32_t i = 0; i < tid.GetAttributeListN (); i++)
+ NS_LOG_DEBUG ("construct tid="<<tid.GetName ()<<", params="<<tid.GetAttributeN ());
+ for (uint32_t i = 0; i < tid.GetAttributeN (); i++)
{
Ptr<const AttributeAccessor> paramSpec = tid.GetAttributeAccessor (i);
Attribute initial = tid.GetAttributeInitialValue (i);
--- a/src/core/type-id.cc Fri Mar 21 13:24:15 2008 -0700
+++ b/src/core/type-id.cc Fri Mar 21 13:41:16 2008 -0700
@@ -54,7 +54,7 @@
ns3::Attribute initialValue,
ns3::Ptr<const ns3::AttributeAccessor> spec,
ns3::Ptr<const ns3::AttributeChecker> checker);
- uint32_t GetAttributeListN (uint16_t uid) const;
+ uint32_t GetAttributeN (uint16_t uid) const;
std::string GetAttributeName (uint16_t uid, uint32_t i) const;
std::string GetAttributeHelp (uint16_t uid, uint32_t i) const;
uint32_t GetAttributeFlags (uint16_t uid, uint32_t i) const;
@@ -263,7 +263,7 @@
uint32_t
-IidManager::GetAttributeListN (uint16_t uid) const
+IidManager::GetAttributeN (uint16_t uid) const
{
struct IidInformation *information = LookupInformation (uid);
return information->attributes.size ();
@@ -438,7 +438,7 @@
TypeId nextTid = *this;
do {
tid = nextTid;
- for (uint32_t i = 0; i < tid.GetAttributeListN (); i++)
+ for (uint32_t i = 0; i < tid.GetAttributeN (); i++)
{
std::string paramName = tid.GetAttributeName (i);
if (paramName == name)
@@ -548,9 +548,9 @@
}
uint32_t
-TypeId::GetAttributeListN (void) const
+TypeId::GetAttributeN (void) const
{
- uint32_t n = Singleton<IidManager>::Get ()->GetAttributeListN (m_tid);
+ uint32_t n = Singleton<IidManager>::Get ()->GetAttributeN (m_tid);
return n;
}
std::string
--- a/src/core/type-id.h Fri Mar 21 13:24:15 2008 -0700
+++ b/src/core/type-id.h Fri Mar 21 13:41:16 2008 -0700
@@ -139,7 +139,7 @@
/**
* \returns the number of attributes associated to this TypeId
*/
- uint32_t GetAttributeListN (void) const;
+ uint32_t GetAttributeN (void) const;
/**
* \param i index into attribute array
* \returns the name associated to the attribute whose
--- a/utils/print-introspected-doxygen.cc Fri Mar 21 13:24:15 2008 -0700
+++ b/utils/print-introspected-doxygen.cc Fri Mar 21 13:41:16 2008 -0700
@@ -7,7 +7,7 @@
PrintAttributes (TypeId tid, std::ostream &os)
{
os << "<ul>"<<std::endl;
- for (uint32_t j = 0; j < tid.GetAttributeListN (); j++)
+ for (uint32_t j = 0; j < tid.GetAttributeN (); j++)
{
os << "<li><b>" << tid.GetAttributeName (j) << "</b>: "
<< tid.GetAttributeHelp (j) << std::endl;
@@ -52,7 +52,7 @@
}
std::cout << "\\fn static TypeId " << tid.GetName () << "::GetTypeId (void)" << std::endl;
std::cout << "\\brief This method returns the TypeId associated to \\ref " << tid.GetName () << std::endl << std::endl;
- if (tid.GetAttributeListN () == 0)
+ if (tid.GetAttributeN () == 0)
{
std::cout << "No Attributes defined for this type." << std::endl;
}
@@ -65,7 +65,7 @@
TypeId tmp = tid.GetParent ();
while (tmp.GetParent () != tmp)
{
- if (tmp.GetAttributeListN () != 0)
+ if (tmp.GetAttributeN () != 0)
{
hasAttributesInParent = true;
}
@@ -77,7 +77,7 @@
tmp = tid.GetParent ();
while (tmp.GetParent () != tmp)
{
- if (tmp.GetAttributeListN () != 0)
+ if (tmp.GetAttributeN () != 0)
{
std::cout << tmp.GetName () << std::endl;
PrintAttributes (tmp, std::cout);