ns3::TypeId Class Reference

a unique identifier for an interface. More...

#include <type-id.h>

List of all members.

Classes

struct  AttributeInfo
 store together a set of attribute properties. More...

Public Types

enum  AttributeFlag { ATTR_GET = 1<<0, ATTR_SET = 1<<1, ATTR_CONSTRUCT = 1<<2, ATTR_SGC = ATTR_GET | ATTR_SET | ATTR_CONSTRUCT }

Public Member Functions

 TypeId (const char *name)
TypeId GetParent (void) const
bool HasParent (void) const
bool IsChildOf (TypeId other) const
std::string GetGroupName (void) const
std::string GetName (void) const
bool HasConstructor (void) const
uint32_t GetAttributeN (void) const
std::string GetAttributeName (uint32_t i) const
std::string GetAttributeHelp (uint32_t i) const
std::string GetAttributeFullName (uint32_t i) const
Ptr< const AttributeValueGetAttributeInitialValue (uint32_t i) const
uint32_t GetAttributeFlags (uint32_t i) const
Ptr< const AttributeCheckerGetAttributeChecker (uint32_t i) const
Ptr< const AttributeAccessorGetAttributeAccessor (uint32_t i) const
Callback< ObjectBase * > GetConstructor (void) const
bool MustHideFromDocumentation (void) const
uint32_t GetTraceSourceN (void) const
std::string GetTraceSourceName (uint32_t i) const
std::string GetTraceSourceHelp (uint32_t i) const
Ptr< const TraceSourceAccessorGetTraceSourceAccessor (uint32_t i) const
TypeId SetParent (TypeId tid)
template<typename T >
TypeId SetParent (void)
TypeId SetGroupName (std::string groupName)
template<typename T >
TypeId AddConstructor (void)
TypeId AddAttribute (std::string name, std::string help, const AttributeValue &initialValue, Ptr< const AttributeAccessor > accessor, Ptr< const AttributeChecker > checker)
TypeId AddAttribute (std::string name, std::string help, uint32_t flags, const AttributeValue &initialValue, Ptr< const AttributeAccessor > accessor, Ptr< const AttributeChecker > checker)
TypeId AddTraceSource (std::string name, std::string help, Ptr< const TraceSourceAccessor > accessor)
TypeId HideFromDocumentation (void)
bool LookupAttributeByName (std::string name, struct AttributeInfo *info) const
Ptr< const TraceSourceAccessorLookupTraceSourceByName (std::string name) const
uint16_t GetUid (void) const
void SetUid (uint16_t tid)
 TypeId ()
 TypeId (const TypeId &o)
TypeIdoperator= (const TypeId &o)
 ~TypeId ()

Static Public Member Functions

static TypeId LookupByName (std::string name)
static bool LookupByNameFailSafe (std::string name, TypeId *tid)
static uint32_t GetRegisteredN (void)
static TypeId GetRegistered (uint32_t i)

Private Member Functions

 TypeId (uint16_t tid)
void DoAddConstructor (Callback< ObjectBase * > callback)

Static Private Member Functions

static bool LookupAttributeByFullName (std::string fullName, struct AttributeInfo *info)

Private Attributes

uint16_t m_tid

Friends

class AttributeList
bool operator== (TypeId a, TypeId b)
bool operator!= (TypeId a, TypeId b)
bool operator< (TypeId a, TypeId b)

Detailed Description

a unique identifier for an interface.

This class records a lot of meta-information about a subclass of the Object base class:

Definition at line 44 of file type-id.h.


Member Enumeration Documentation

Flags describing when a given attribute can be read or written

Enumerator:
ATTR_GET 

The attribute can be read

ATTR_SET 

The attribute can be written

ATTR_CONSTRUCT 

The attribute can be written at construction-time

ATTR_SGC 

Definition at line 50 of file type-id.h.


Constructor & Destructor Documentation

ns3::TypeId::TypeId ( const char *  name  )  [explicit]
Parameters:
name the name of the interface to construct.

No two instances can share the same name. The name is expected to be the full c++ typename of associated c++ object.

Definition at line 368 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), m_tid, and NS_ASSERT.

ns3::TypeId::TypeId (  )  [inline]

Definition at line 389 of file type-id.h.

Referenced by GetParent(), GetRegistered(), LookupByName(), and LookupByNameFailSafe().

ns3::TypeId::TypeId ( const TypeId o  )  [inline]

Definition at line 391 of file type-id.h.

ns3::TypeId::~TypeId (  )  [inline]

Definition at line 398 of file type-id.h.

ns3::TypeId::TypeId ( uint16_t  tid  )  [explicit, private]

Definition at line 376 of file type-id.cc.


Member Function Documentation

TypeId ns3::TypeId::AddAttribute ( std::string  name,
std::string  help,
uint32_t  flags,
const AttributeValue initialValue,
Ptr< const AttributeAccessor accessor,
Ptr< const AttributeChecker checker 
)
Parameters:
name the name of the new attribute
help some help text which describes the purpose of this attribute
flags flags which describe how this attribute can be read and/or written.
initialValue the initial value for this attribute.
accessor an instance of the associated AttributeAccessor subclass.
checker an instance of the associated AttributeChecker subclass.
Returns:
this TypeId instance

Record in this TypeId the fact that a new attribute exists.

Definition at line 524 of file type-id.cc.

References ns3::AttributeValue::Copy(), ns3::TimeStepPrecision::Get(), and m_tid.

TypeId ns3::TypeId::AddAttribute ( std::string  name,
std::string  help,
const AttributeValue initialValue,
Ptr< const AttributeAccessor accessor,
Ptr< const AttributeChecker checker 
)
Parameters:
name the name of the new attribute
help some help text which describes the purpose of this attribute.
initialValue the initial value for this attribute.
accessor an instance of the associated AttributeAccessor subclass.
checker an instance of the associated AttributeChecker subclass.
Returns:
this TypeId instance

Record in this TypeId the fact that a new attribute exists.

Definition at line 513 of file type-id.cc.

References ATTR_SGC, ns3::AttributeValue::Copy(), ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::Ns3NscStack::GetInstanceTypeId(), ns3::RealtimeSimulatorImpl::GetTypeId(), ns3::olsr::AgentImpl::GetTypeId(), ns3::UdpSocket::GetTypeId(), ns3::TcpSocket::GetTypeId(), ns3::PacketSocket::GetTypeId(), ns3::Node::GetTypeId(), ns3::DropTailQueue::GetTypeId(), ns3::RandomWalk2dMobilityModel::GetTypeId(), ns3::RandomDiscPositionAllocator::GetTypeId(), ns3::GridPositionAllocator::GetTypeId(), ns3::HierarchicalMobilityModel::GetTypeId(), ns3::UdpSocketImpl::GetTypeId(), ns3::UdpL4Protocol::GetTypeId(), ns3::RttMeanDeviation::GetTypeId(), ns3::RttEstimator::GetTypeId(), ns3::Ipv4RawSocketImpl::GetTypeId(), ns3::Ipv4L3Protocol::GetTypeId(), ns3::ArpCache::GetTypeId(), ns3::YansWifiPhy::GetTypeId(), ns3::YansWifiChannel::GetTypeId(), ns3::TxModeTag::GetTypeId(), ns3::WifiRemoteStationManager::GetTypeId(), ns3::WifiPhyRxTag::GetTypeId(), ns3::WifiPhyTxTag::GetTypeId(), ns3::WifiNetDevice::GetTypeId(), ns3::WifiMac::GetTypeId(), ns3::WifiMacQueue::GetTypeId(), ns3::RraaWifiManager::GetTypeId(), ns3::NakagamiPropagationLossModel::GetTypeId(), ns3::ThreeLogDistancePropagationLossModel::GetTypeId(), ns3::LogDistancePropagationLossModel::GetTypeId(), ns3::FriisPropagationLossModel::GetTypeId(), ns3::RandomPropagationLossModel::GetTypeId(), ns3::ConstantSpeedPropagationDelayModel::GetTypeId(), ns3::RandomPropagationDelayModel::GetTypeId(), ns3::OnoeWifiManager::GetTypeId(), ns3::Ns2ExtWifiPhy::GetTypeId(), ns3::Ns2ExtWifiChannel::GetTypeId(), ns3::NqstaWifiMac::GetTypeId(), ns3::NqapWifiMac::GetTypeId(), ns3::SnrTag::GetTypeId(), ns3::JakesPropagationLossModel::GetTypeId(), ns3::IdealWifiManager::GetTypeId(), ns3::DcaTxop::GetTypeId(), ns3::ArfWifiManager::GetTypeId(), ns3::AmrrWifiManager::GetTypeId(), ns3::AarfWifiManager::GetTypeId(), ns3::PointToPointNetDevice::GetTypeId(), ns3::PointToPointChannel::GetTypeId(), ns3::EmuNetDevice::GetTypeId(), ns3::CsmaNetDevice::GetTypeId(), ns3::CsmaChannel::GetTypeId(), ns3::BridgeNetDevice::GetTypeId(), ns3::MyNode::GetTypeId(), ns3::RateErrorModel::GetTypeId(), ns3::V4Ping::GetTypeId(), ns3::UdpEchoServer::GetTypeId(), ns3::UdpEchoClient::GetTypeId(), ns3::PacketSink::GetTypeId(), and ns3::OnOffApplication::GetTypeId().

template<typename T >
TypeId ns3::TypeId::AddConstructor ( void   )  [inline]
TypeId ns3::TypeId::AddTraceSource ( std::string  name,
std::string  help,
Ptr< const TraceSourceAccessor accessor 
)
void ns3::TypeId::DoAddConstructor ( Callback< ObjectBase * >  callback  )  [private]

Definition at line 507 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by AddConstructor().

Ptr< const AttributeAccessor > ns3::TypeId::GetAttributeAccessor ( uint32_t  i  )  const
Parameters:
i index into attribute array.
Returns:
the accessor associated to the requested attribute.

Definition at line 579 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::ObjectBase::ConstructSelf(), ns3::AttributeIterator::DoIterate(), and LookupAttributeByName().

Ptr< const AttributeChecker > ns3::TypeId::GetAttributeChecker ( uint32_t  i  )  const
Parameters:
i index into attribute array.
Returns:
the checker associated to the requested attribute.

Definition at line 593 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::ObjectBase::ConstructSelf(), ns3::AttributeIterator::DoIterate(), LookupAttributeByName(), ns3::AttributeList::LookupAttributeFullNameByChecker(), and ns3::CommandLine::PrintAttributes().

uint32_t ns3::TypeId::GetAttributeFlags ( uint32_t  i  )  const
Parameters:
i index into attribute array.
Returns:
the flags associated to the requested attribute.

Definition at line 586 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::ObjectBase::ConstructSelf(), ns3::AttributeIterator::DoIterate(), and LookupAttributeByName().

std::string ns3::TypeId::GetAttributeFullName ( uint32_t  i  )  const
Parameters:
i index into attribute array
Returns:
the full name associated to the attribute whose index is i.

Definition at line 568 of file type-id.cc.

References GetAttributeName(), and GetName().

Referenced by ns3::AttributeList::LookupAttributeFullNameByChecker(), and ns3::CommandLine::PrintAttributes().

std::string ns3::TypeId::GetAttributeHelp ( uint32_t  i  )  const
Parameters:
i index into attribute array.
Returns:
the help text associated to the attribute whose index is i.

Definition at line 562 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::CommandLine::PrintAttributes().

Ptr< const AttributeValue > ns3::TypeId::GetAttributeInitialValue ( uint32_t  i  )  const
Parameters:
i index into attribute array.
Returns:
the value with which the associated attribute is initialized.

Definition at line 573 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::ObjectBase::ConstructSelf(), LookupAttributeByName(), and ns3::CommandLine::PrintAttributes().

uint32_t ns3::TypeId::GetAttributeN ( void   )  const
std::string ns3::TypeId::GetAttributeName ( uint32_t  i  )  const
Parameters:
i index into attribute array
Returns:
the name associated to the attribute whose index is i.

Definition at line 556 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::ObjectBase::ConstructSelf(), ns3::AttributeIterator::DoIterate(), GetAttributeFullName(), LookupAttributeByName(), and ns3::Packet::Print().

Callback< ObjectBase * > ns3::TypeId::GetConstructor ( void   )  const
Returns:
a callback which can be used to instanciate an object of this type.

Definition at line 536 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::PacketMetadataTest::CheckHistory(), ns3::ObjectFactory::Create(), ns3::PacketTest::DoCheck(), ns3::Packet::Print(), and ns3::Packet::PrintTags().

std::string ns3::TypeId::GetGroupName ( void   )  const
Returns:
the name of the group associated to this TypeId.

Definition at line 486 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::CommandLine::PrintGroup(), and ns3::CommandLine::PrintGroups().

std::string ns3::TypeId::GetName ( void   )  const
TypeId ns3::TypeId::GetParent ( void   )  const
Returns:
the parent of this TypeId

This method cannot fail. It will return itself if this TypeId has no parent. i.e., it is at the top of the TypeId hierarchy. Currently, this is the case for the TypeId associated to the Object class only.

Definition at line 464 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), m_tid, and TypeId().

Referenced by ns3::ObjectBase::ConstructSelf(), ns3::Object::DoGetObject(), ns3::AttributeIterator::DoIterate(), IsChildOf(), LookupAttributeByName(), and LookupTraceSourceByName().

TypeId ns3::TypeId::GetRegistered ( uint32_t  i  )  [static]
Parameters:
i index
Returns:
the TypeId instance whose index is i.

Definition at line 422 of file type-id.cc.

References TypeId().

Referenced by ns3::AttributeList::LookupAttributeFullNameByChecker(), ns3::CommandLine::PrintGroup(), ns3::CommandLine::PrintGroups(), and ns3::CommandLine::PrintTypeIds().

uint32_t ns3::TypeId::GetRegisteredN ( void   )  [static]
Ptr< const TraceSourceAccessor > ns3::TypeId::GetTraceSourceAccessor ( uint32_t  i  )  const
Parameters:
i index into trace source array.
Returns:
the accessor used to get access to the requested trace source.

Definition at line 616 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by LookupTraceSourceByName().

std::string ns3::TypeId::GetTraceSourceHelp ( uint32_t  i  )  const
Parameters:
i index into trace source array.
Returns:
the help text of the requested trace source.

Definition at line 611 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

uint32_t ns3::TypeId::GetTraceSourceN ( void   )  const
Returns:
the number of trace sources defined in this TypeId.

Definition at line 601 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by LookupTraceSourceByName().

std::string ns3::TypeId::GetTraceSourceName ( uint32_t  i  )  const
Parameters:
i index into trace source array.
Returns:
the name of the requested trace source.

Definition at line 606 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by LookupTraceSourceByName().

uint16_t ns3::TypeId::GetUid ( void   )  const
Returns:
the internal integer which uniquely identifies this TypeId.

This is really an internal method which users are not expected to use.

Definition at line 659 of file type-id.cc.

References m_tid.

Referenced by ns3::TagList::Add(), ns3::PacketMetadata::AddHeader(), ns3::PacketMetadata::AddTrailer(), ns3::PacketMetadata::Deserialize(), ns3::PacketMetadata::RemoveHeader(), and ns3::PacketMetadata::RemoveTrailer().

bool ns3::TypeId::HasConstructor ( void   )  const
Returns:
true if this TypeId has a constructor

Definition at line 500 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::Packet::Print().

bool ns3::TypeId::HasParent ( void   )  const

Definition at line 470 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::AttributeIterator::DoIterate().

TypeId ns3::TypeId::HideFromDocumentation ( void   ) 

Definition at line 631 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

bool ns3::TypeId::IsChildOf ( TypeId  other  )  const
Parameters:
other a parent TypeId
Returns:
true if the input TypeId is really a parent of this TypeId, false otherwise.

Calling this method is roughly similar to calling dynamic_cast except that you do not need object instances: you can do the check with TypeId instances instead.

Definition at line 476 of file type-id.cc.

References GetParent().

Referenced by ns3::PacketMetadata::ItemIterator::Next().

bool ns3::TypeId::LookupAttributeByFullName ( std::string  fullName,
struct AttributeInfo info 
) [static, private]
Parameters:
fullName the full name of the requested attribute
info a pointer to the TypeId::AttributeInfo data structure where the result value of this method will be stored.
Returns:
the Accessor associated to the requested attribute

Definition at line 399 of file type-id.cc.

References LookupAttributeByName(), and LookupByNameFailSafe().

Referenced by ns3::AttributeList::DeserializeFromString(), ns3::AttributeList::Set(), and ns3::AttributeList::SetFailSafe().

bool ns3::TypeId::LookupAttributeByName ( std::string  name,
struct AttributeInfo info 
) const
Parameters:
name the name of the requested attribute
info a pointer to the TypeId::AttributeInfo data structure where the result value of this method will be stored.
Returns:
true if the requested attribute could be found, false otherwise.

Definition at line 428 of file type-id.cc.

References ns3::TypeId::AttributeInfo::accessor, ns3::TypeId::AttributeInfo::checker, ns3::TypeId::AttributeInfo::flags, GetAttributeAccessor(), GetAttributeChecker(), GetAttributeFlags(), GetAttributeInitialValue(), GetAttributeN(), GetAttributeName(), GetParent(), and ns3::TypeId::AttributeInfo::initialValue.

Referenced by ns3::Resolver::DoResolve(), LookupAttributeByFullName(), and ns3::AttributeList::SetWithTid().

TypeId ns3::TypeId::LookupByName ( std::string  name  )  [static]
Parameters:
name the name of the requested TypeId
Returns:
the unique id associated with the requested name.

This method cannot fail: it will crash if the input name is not a valid TypeId name.

Definition at line 380 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), NS_ASSERT_MSG, and TypeId().

Referenced by ns3::PacketMetadata::Deserialize(), ns3::Resolver::DoResolve(), ns3::UnsafeAttributeList::GetSafe(), ns3::UdpEchoServer::StartApplication(), and ns3::UdpEchoClient::StartApplication().

bool ns3::TypeId::LookupByNameFailSafe ( std::string  name,
TypeId tid 
) [static]
Parameters:
name the name of the requested TypeId
tid a pointer to the TypeId instance where the result of this function should be stored.
Returns:
true if the requested name was found, false otherwise.

Definition at line 387 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and TypeId().

Referenced by ns3::Ns3NscStack::GetInstanceTypeId(), LookupAttributeByFullName(), and ns3::CommandLine::PrintAttributes().

Ptr< const TraceSourceAccessor > ns3::TypeId::LookupTraceSourceByName ( std::string  name  )  const
Parameters:
name the name of the requested trace source
Returns:
the trace source accessor which can be used to connect and disconnect trace sinks with the requested trace source on an object instance.

If no matching trace source is found, this method returns zero.

Definition at line 639 of file type-id.cc.

References GetParent(), GetTraceSourceAccessor(), GetTraceSourceN(), and GetTraceSourceName().

Referenced by ns3::ObjectBase::TraceConnect(), ns3::ObjectBase::TraceConnectWithoutContext(), ns3::ObjectBase::TraceDisconnect(), and ns3::ObjectBase::TraceDisconnectWithoutContext().

bool ns3::TypeId::MustHideFromDocumentation ( void   )  const
Returns:
true if this TypeId should be hidden from the user, false otherwise.

Definition at line 543 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

TypeId & ns3::TypeId::operator= ( const TypeId o  )  [inline]

Definition at line 393 of file type-id.h.

References m_tid.

TypeId ns3::TypeId::SetGroupName ( std::string  groupName  ) 
Parameters:
groupName the name of the group this TypeId belongs to.
Returns:
this TypeId instance.

The group name is purely an advisory information used to group together types according to a user-specific grouping scheme.

Definition at line 458 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

template<typename T >
TypeId ns3::TypeId::SetParent ( void   )  [inline]
Returns:
this TypeId instance.

Record in this TypeId which TypeId is the TypeId of the base class of the subclass.

Definition at line 417 of file type-id.h.

TypeId ns3::TypeId::SetParent ( TypeId  tid  ) 
Parameters:
tid the TypeId of the base class.
Returns:
this TypeId instance.

Record in this TypeId which TypeId is the TypeId of the base class of the subclass.

Definition at line 452 of file type-id.cc.

References ns3::TimeStepPrecision::Get(), and m_tid.

Referenced by ns3::Ns3NscStack::GetInstanceTypeId(), ns3::GetObjectIid(), ns3::Synchronizer::GetTypeId(), ns3::Scheduler::GetTypeId(), ns3::RealtimeSimulatorImpl::GetTypeId(), ns3::MapScheduler::GetTypeId(), ns3::HeapScheduler::GetTypeId(), ns3::DefaultSimulatorImpl::GetTypeId(), ns3::olsr::MessageHeader::GetTypeId(), ns3::olsr::PacketHeader::GetTypeId(), ns3::olsr::Agent::GetTypeId(), ns3::olsr::AgentImpl::GetTypeId(), ns3::GlobalRouter::GetTypeId(), ns3::UdpSocket::GetTypeId(), ns3::TcpSocket::GetTypeId(), ns3::SocketSetDontFragmentTag::GetTypeId(), ns3::SocketIpTtlTag::GetTypeId(), ns3::SocketAddressTag::GetTypeId(), ns3::SocketFactory::GetTypeId(), ns3::SimpleNetDevice::GetTypeId(), ns3::SimpleChannel::GetTypeId(), ns3::Queue::GetTypeId(), ns3::PacketSocket::GetTypeId(), ns3::PacketSocketFactory::GetTypeId(), ns3::Node::GetTypeId(), ns3::NodeListPriv::GetTypeId(), ns3::NetDevice::GetTypeId(), ns3::Ipv6Header::GetTypeId(), ns3::Ipv4::GetTypeId(), ns3::Ipv4Header::GetTypeId(), ns3::EthernetTrailer::GetTypeId(), ns3::EthernetHeader::GetTypeId(), ns3::DropTailQueue::GetTypeId(), ns3::Channel::GetTypeId(), ns3::Application::GetTypeId(), ns3::StaticMobilityModel::GetTypeId(), ns3::RandomWaypointMobilityModel::GetTypeId(), ns3::RandomWalk2dMobilityModel::GetTypeId(), ns3::RandomDirection2dMobilityModel::GetTypeId(), ns3::RandomDiscPositionAllocator::GetTypeId(), ns3::RandomRectanglePositionAllocator::GetTypeId(), ns3::GridPositionAllocator::GetTypeId(), ns3::ListPositionAllocator::GetTypeId(), ns3::PositionAllocator::GetTypeId(), ns3::MobilityModel::GetTypeId(), ns3::HierarchicalMobilityModel::GetTypeId(), ns3::UdpSocketImpl::GetTypeId(), ns3::UdpL4Protocol::GetTypeId(), ns3::UdpHeader::GetTypeId(), ns3::TcpSocketImpl::GetTypeId(), ns3::TcpL4Protocol::GetTypeId(), ns3::RttMeanDeviation::GetTypeId(), ns3::RttEstimator::GetTypeId(), ns3::NscTcpSocketImpl::GetTypeId(), ns3::NscTcpL4Protocol::GetTypeId(), ns3::Ipv4RawSocketImpl::GetTypeId(), ns3::Ipv4LoopbackInterface::GetTypeId(), ns3::Ipv4L4Protocol::GetTypeId(), ns3::Ipv4L3Protocol::GetTypeId(), ns3::Ipv4Interface::GetTypeId(), ns3::Ipv4GlobalRouting::GetTypeId(), ns3::Icmpv4TimeExceeded::GetTypeId(), ns3::Icmpv4DestinationUnreachable::GetTypeId(), ns3::Icmpv4Echo::GetTypeId(), ns3::Icmpv4Header::GetTypeId(), ns3::ArpL3Protocol::GetTypeId(), ns3::ArpIpv4Interface::GetTypeId(), ns3::ArpHeader::GetTypeId(), ns3::ArpCache::GetTypeId(), ns3::YansWifiPhy::GetTypeId(), ns3::YansWifiPhyStateHelper::GetTypeId(), ns3::YansWifiChannel::GetTypeId(), ns3::YansErrorRateModel::GetTypeId(), ns3::WifiRemoteStation::GetTypeId(), ns3::TxModeTag::GetTypeId(), ns3::WifiRemoteStationManager::GetTypeId(), ns3::WifiPhy::GetTypeId(), ns3::WifiPhyRxTag::GetTypeId(), ns3::WifiPhyTxTag::GetTypeId(), ns3::WifiNetDevice::GetTypeId(), ns3::WifiMac::GetTypeId(), ns3::WifiMacTrailer::GetTypeId(), ns3::WifiMacQueue::GetTypeId(), ns3::WifiMacHeader::GetTypeId(), ns3::WifiChannel::GetTypeId(), ns3::RraaWifiManager::GetTypeId(), ns3::NakagamiPropagationLossModel::GetTypeId(), ns3::ThreeLogDistancePropagationLossModel::GetTypeId(), ns3::LogDistancePropagationLossModel::GetTypeId(), ns3::FriisPropagationLossModel::GetTypeId(), ns3::RandomPropagationLossModel::GetTypeId(), ns3::PropagationLossModel::GetTypeId(), ns3::ConstantSpeedPropagationDelayModel::GetTypeId(), ns3::RandomPropagationDelayModel::GetTypeId(), ns3::PropagationDelayModel::GetTypeId(), ns3::OnoeWifiManager::GetTypeId(), ns3::Ns2ExtWifiPhy::GetTypeId(), ns3::Ns2ExtWifiPhyStateHelper::GetTypeId(), ns3::Ns2ExtWifiChannel::GetTypeId(), ns3::NqstaWifiMac::GetTypeId(), ns3::NqapWifiMac::GetTypeId(), ns3::SnrTag::GetTypeId(), ns3::JakesPropagationLossModel::GetTypeId(), ns3::IdealWifiManager::GetTypeId(), ns3::ErrorRateModel::GetTypeId(), ns3::DcaTxop::GetTypeId(), ns3::ArfWifiManager::GetTypeId(), ns3::AmrrWifiManager::GetTypeId(), ns3::AdhocWifiMac::GetTypeId(), ns3::AarfWifiManager::GetTypeId(), ns3::PppHeader::GetTypeId(), ns3::PointToPointNetDevice::GetTypeId(), ns3::PointToPointChannel::GetTypeId(), ns3::EmuNetDevice::GetTypeId(), ns3::CsmaNetDevice::GetTypeId(), ns3::CsmaChannel::GetTypeId(), ns3::BridgeNetDevice::GetTypeId(), ns3::BridgeChannel::GetTypeId(), anonymous_namespace{object.cc}::DerivedB::GetTypeId(), anonymous_namespace{object.cc}::BaseB::GetTypeId(), anonymous_namespace{object.cc}::DerivedA::GetTypeId(), anonymous_namespace{object.cc}::BaseA::GetTypeId(), ns3::Object::GetTypeId(), ns3::MyNode::GetTypeId(), ns3::Derived::GetTypeId(), ns3::FlowIdTag::GetTypeId(), ns3::ConfigStore::GetTypeId(), ns3::Trailer::GetTypeId(), ns3::Tag::GetTypeId(), anonymous_namespace{packet-metadata-test.cc}::HistoryTrailerBase::GetTypeId(), ns3::Header::GetTypeId(), ns3::ListErrorModel::GetTypeId(), ns3::RateErrorModel::GetTypeId(), ns3::ErrorModel::GetTypeId(), ns3::Chunk::GetTypeId(), ns3::V4Ping::GetTypeId(), ns3::UdpEchoServer::GetTypeId(), ns3::UdpEchoClient::GetTypeId(), ns3::PacketSink::GetTypeId(), and ns3::OnOffApplication::GetTypeId().

void ns3::TypeId::SetUid ( uint16_t  tid  ) 
Parameters:
tid the internal integer which uniquely identifies this TypeId.

This method is even more internal than TypeId::GetUid. Use at your own risk and don't be surprised that it eats raw babies on full-moon nights.

Definition at line 664 of file type-id.cc.

References m_tid.

Referenced by ns3::PacketMetadata::GetSerializedSize(), ns3::TagList::Iterator::Next(), ns3::PacketMetadata::ItemIterator::Next(), and ns3::PacketMetadata::Serialize().


Friends And Related Function Documentation

friend class AttributeList [friend]

Definition at line 351 of file type-id.h.

bool operator!= ( TypeId  a,
TypeId  b 
) [friend]

Definition at line 405 of file type-id.h.

bool operator< ( TypeId  a,
TypeId  b 
) [friend]
bool operator== ( TypeId  a,
TypeId  b 
) [friend]

Definition at line 400 of file type-id.h.


Member Data Documentation

uint16_t ns3::TypeId::m_tid [private]

The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:35 2009 for NS-3 by  doxygen 1.6.3