a unique identifier for an interface. More...
#include <type-id.h>
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 AttributeValue > | GetAttributeInitialValue (uint32_t i) const |
uint32_t | GetAttributeFlags (uint32_t i) const |
Ptr< const AttributeChecker > | GetAttributeChecker (uint32_t i) const |
Ptr< const AttributeAccessor > | GetAttributeAccessor (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 TraceSourceAccessor > | GetTraceSourceAccessor (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 TraceSourceAccessor > | LookupTraceSourceByName (std::string name) const |
uint16_t | GetUid (void) const |
void | SetUid (uint16_t tid) |
TypeId () | |
TypeId (const TypeId &o) | |
TypeId & | operator= (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) |
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.
ns3::TypeId::TypeId | ( | const char * | name | ) | [explicit] |
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 | ( | uint16_t | tid | ) | [explicit, private] |
Definition at line 376 of file type-id.cc.
TypeId ns3::TypeId::AddAttribute | ( | std::string | name, | |
std::string | help, | |||
uint32_t | flags, | |||
const AttributeValue & | initialValue, | |||
Ptr< const AttributeAccessor > | accessor, | |||
Ptr< const AttributeChecker > | checker | |||
) |
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. |
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 | |||
) |
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. |
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().
TypeId ns3::TypeId::AddConstructor | ( | void | ) | [inline] |
Record in this TypeId the fact that the default constructor is accessible.
Definition at line 424 of file type-id.h.
References ns3::Create(), DoAddConstructor(), and ns3::MakeCallback().
Referenced by ns3::RandomWaypointMobilityModel::GetTypeId(), ns3::RandomWalk2dMobilityModel::GetTypeId(), ns3::RandomDirection2dMobilityModel::GetTypeId(), ns3::RandomDiscPositionAllocator::GetTypeId(), ns3::RandomRectanglePositionAllocator::GetTypeId(), ns3::GridPositionAllocator::GetTypeId(), anonymous_namespace{packet.cc}::ATestTrailer< N >::GetTypeId(), anonymous_namespace{packet.cc}::ATestHeader< N >::GetTypeId(), anonymous_namespace{packet.cc}::ATestTag< N >::GetTypeId(), anonymous_namespace{packet-metadata-test.cc}::HistoryTrailer< N >::GetTypeId(), and anonymous_namespace{packet-metadata-test.cc}::HistoryHeader< N >::GetTypeId().
TypeId ns3::TypeId::AddTraceSource | ( | std::string | name, | |
std::string | help, | |||
Ptr< const TraceSourceAccessor > | accessor | |||
) |
name | the name of the new trace source | |
help | some help text which describes the purpose of this trace source. | |
accessor | a pointer to a TraceSourceAccessor which can be used to connect/disconnect sinks to this trace source. |
Definition at line 622 of file type-id.cc.
References ns3::TimeStepPrecision::Get(), and m_tid.
Referenced by ns3::olsr::AgentImpl::GetTypeId(), ns3::PacketSocket::GetTypeId(), ns3::UdpSocketImpl::GetTypeId(), ns3::Ipv4L3Protocol::GetTypeId(), ns3::ArpL3Protocol::GetTypeId(), ns3::ArpCache::GetTypeId(), ns3::YansWifiPhyStateHelper::GetTypeId(), ns3::WifiNetDevice::GetTypeId(), ns3::Ns2ExtWifiPhyStateHelper::GetTypeId(), ns3::PointToPointNetDevice::GetTypeId(), ns3::EmuNetDevice::GetTypeId(), ns3::CsmaNetDevice::GetTypeId(), ns3::MyNode::GetTypeId(), ns3::PacketSink::GetTypeId(), and ns3::OnOffApplication::GetTypeId().
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 |
i | index into attribute array. |
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 |
i | index into attribute array. |
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 |
i | index into attribute array. |
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 |
i | index into attribute array |
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 |
i | index into attribute array. |
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 |
i | index into attribute array. |
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 |
Definition at line 550 of file type-id.cc.
References ns3::TimeStepPrecision::Get(), and m_tid.
Referenced by ns3::ObjectBase::ConstructSelf(), ns3::AttributeIterator::DoIterate(), LookupAttributeByName(), ns3::AttributeList::LookupAttributeFullNameByChecker(), ns3::Packet::Print(), and ns3::CommandLine::PrintAttributes().
std::string ns3::TypeId::GetAttributeName | ( | uint32_t | i | ) | const |
i | index into attribute array |
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 |
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 |
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 |
Definition at line 493 of file type-id.cc.
References ns3::TimeStepPrecision::Get(), and m_tid.
Referenced by ns3::ObjectBase::ConstructSelf(), ns3::PacketTest::DoCheck(), ns3::AttributeIterator::DoIterate(), GetAttributeFullName(), ns3::MobilityHelper::GetMobilityModelType(), ns3::PacketMetadata::GetSerializedSize(), ns3::internal::APointerChecker< T >::GetUnderlyingTypeInformation(), ns3::MobilityHelper::Install(), ns3::Packet::Print(), ns3::CommandLine::PrintGroup(), ns3::Packet::PrintTags(), ns3::CommandLine::PrintTypeIds(), ns3::PacketMetadata::Serialize(), and ns3::AttributeList::SetWithTid().
TypeId ns3::TypeId::GetParent | ( | void | ) | const |
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] |
i | index |
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] |
Definition at line 417 of file type-id.cc.
References ns3::TimeStepPrecision::Get().
Referenced by ns3::AttributeList::LookupAttributeFullNameByChecker(), ns3::CommandLine::PrintGroup(), ns3::CommandLine::PrintGroups(), and ns3::CommandLine::PrintTypeIds().
Ptr< const TraceSourceAccessor > ns3::TypeId::GetTraceSourceAccessor | ( | uint32_t | i | ) | const |
i | index into trace source array. |
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 |
i | index into trace source array. |
Definition at line 611 of file type-id.cc.
References ns3::TimeStepPrecision::Get(), and m_tid.
uint32_t ns3::TypeId::GetTraceSourceN | ( | void | ) | const |
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 |
i | index into trace source array. |
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 |
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 |
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 |
other | a parent TypeId |
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] |
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. |
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 |
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. |
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] |
name | the name of the requested TypeId |
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] |
name | the name of the requested TypeId | |
tid | a pointer to the TypeId instance where the result of this function should be stored. |
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 |
name | the name of the requested trace source |
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 |
Definition at line 543 of file type-id.cc.
References ns3::TimeStepPrecision::Get(), and m_tid.
TypeId ns3::TypeId::SetGroupName | ( | std::string | groupName | ) |
groupName | the name of the group this TypeId belongs to. |
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.
TypeId ns3::TypeId::SetParent | ( | void | ) | [inline] |
tid | the TypeId of the base class. |
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 | ) |
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().
friend class AttributeList [friend] |
uint16_t ns3::TypeId::m_tid [private] |
Definition at line 368 of file type-id.h.
Referenced by AddAttribute(), AddTraceSource(), DoAddConstructor(), GetAttributeAccessor(), GetAttributeChecker(), GetAttributeFlags(), GetAttributeHelp(), GetAttributeInitialValue(), GetAttributeN(), GetAttributeName(), GetConstructor(), GetGroupName(), GetName(), GetParent(), GetTraceSourceAccessor(), GetTraceSourceHelp(), GetTraceSourceN(), GetTraceSourceName(), GetUid(), HasConstructor(), HasParent(), HideFromDocumentation(), MustHideFromDocumentation(), ns3::operator!=(), operator=(), ns3::operator==(), SetGroupName(), SetParent(), SetUid(), and TypeId().