a unique identifier for an interface. More...
#include "type-id.h"
Classes | |
struct | AttributeInformation |
Attribute implementation. More... | |
struct | TraceSourceInformation |
TraceSource implementation. 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 } |
Flags describing when a given attribute can be read or written. More... | |
typedef uint32_t | hash_t |
Type of hash values. More... | |
Public Member Functions | |
TypeId (const char *name) | |
Constructor. More... | |
TypeId () | |
Default constructor. More... | |
TypeId (const TypeId &o) | |
Copy constructor. More... | |
~TypeId () | |
Destructor. More... | |
TypeId | AddAttribute (std::string name, std::string help, const AttributeValue &initialValue, Ptr< const AttributeAccessor > accessor, Ptr< const AttributeChecker > checker) |
Record in this TypeId the fact that a new attribute exists. More... | |
TypeId | AddAttribute (std::string name, std::string help, uint32_t flags, const AttributeValue &initialValue, Ptr< const AttributeAccessor > accessor, Ptr< const AttributeChecker > checker) |
Record in this TypeId the fact that a new attribute exists. More... | |
template<typename T > | |
TypeId | AddConstructor (void) |
Record in this TypeId the fact that the default constructor is accessible. More... | |
TypeId | AddTraceSource (std::string name, std::string help, Ptr< const TraceSourceAccessor > accessor) NS_DEPRECATED |
Record a new TraceSource. More... | |
TypeId | AddTraceSource (std::string name, std::string help, Ptr< const TraceSourceAccessor > accessor, std::string callback) |
Record a new TraceSource. More... | |
struct TypeId::AttributeInformation | GetAttribute (uint32_t i) const |
Get Attribute information by index. More... | |
std::string | GetAttributeFullName (uint32_t i) const |
Get the Attribute name by index. More... | |
uint32_t | GetAttributeN (void) const |
Get the number of attributes. More... | |
Callback< ObjectBase * > | GetConstructor (void) const |
Get the constructor callback. More... | |
std::string | GetGroupName (void) const |
Get the group name. More... | |
hash_t | GetHash (void) const |
Get the hash. More... | |
std::string | GetName (void) const |
Get the name. More... | |
TypeId | GetParent (void) const |
Get the parent of this TypeId. More... | |
std::size_t | GetSize (void) const |
Get the size of this object. More... | |
struct TypeId::TraceSourceInformation | GetTraceSource (uint32_t i) const |
Get the trace source by index. More... | |
uint32_t | GetTraceSourceN (void) const |
Get the number of Trace sources. More... | |
uint16_t | GetUid (void) const |
Get the internal id of this TypeId. More... | |
bool | HasConstructor (void) const |
Check if this TypeId has a constructor. More... | |
bool | HasParent (void) const |
Check if this TypeId has a parent. More... | |
TypeId | HideFromDocumentation (void) |
Hide this TypeId from documentation. More... | |
bool | IsChildOf (TypeId other) const |
Check if this TypeId is a child of another. More... | |
bool | LookupAttributeByName (std::string name, struct AttributeInformation *info) const |
Find an Attribute by name. More... | |
Ptr< const TraceSourceAccessor > | LookupTraceSourceByName (std::string name) const |
Find a TraceSource by name. More... | |
bool | MustHideFromDocumentation (void) const |
Check if this TypeId should not be listed in documentation. More... | |
TypeId & | operator= (const TypeId &o) |
Assignment. More... | |
bool | SetAttributeInitialValue (uint32_t i, Ptr< const AttributeValue > initialValue) |
Set the initial value of an Attribute. More... | |
TypeId | SetGroupName (std::string groupName) |
Set the group name. More... | |
TypeId | SetParent (TypeId tid) |
Set the parent TypeId. More... | |
template<typename T > | |
TypeId | SetParent (void) |
Set the parent TypeId. More... | |
TypeId | SetSize (std::size_t size) |
Set the size of this type. More... | |
void | SetUid (uint16_t tid) |
Set the internal id of this TypeId. More... | |
Static Public Member Functions | |
static TypeId | GetRegistered (uint32_t i) |
Get a TypeId by index. More... | |
static uint32_t | GetRegisteredN (void) |
Get the number of registered TypeIds. More... | |
static TypeId | LookupByHash (hash_t hash) |
Get a TypeId by hash. More... | |
static bool | LookupByHashFailSafe (hash_t hash, TypeId *tid) |
Get a TypeId by hash. More... | |
static TypeId | LookupByName (std::string name) |
Get a TypeId by name. More... | |
static bool | LookupByNameFailSafe (std::string name, TypeId *tid) |
Get a TypeId by name. More... | |
Private Member Functions | |
TypeId (uint16_t tid) | |
Construct from an integer value. More... | |
void | DoAddConstructor (Callback< ObjectBase * > callback) |
Implementation for AddConstructor(). More... | |
Private Attributes | |
uint16_t | m_tid |
The TypeId value. More... | |
Friends | |
Comparison operators. | |
Standard comparison operators. | |
bool | operator== (TypeId a, TypeId b) |
Comparison operator. More... | |
bool | operator!= (TypeId a, TypeId b) |
Comparison operator. More... | |
bool | operator< (TypeId a, TypeId b) |
Comparison operator. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, TypeId tid) |
std::istream & | operator>> (std::istream &is, TypeId &tid) |
a unique identifier for an interface.
This class records a lot of meta-information about a subclass of the Object base class:
typedef uint32_t ns3::TypeId::hash_t |
|
explicit |
Constructor.
[in] | 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 736 of file type-id.cc.
References ns3::IidManager::AllocateUid(), ns3::Singleton< IidManager >::Get(), m_tid, NS_ASSERT, and NS_LOG_FUNCTION.
|
inline |
Default constructor.
This produces an invalid TypeId.
Definition at line 554 of file type-id.h.
Referenced by GetParent(), GetRegistered(), LookupByHash(), LookupByHashFailSafe(), LookupByName(), and LookupByNameFailSafe().
|
inline |
|
explicitprivate |
Construct from an integer value.
[in] | tid | The TypeId value as an integer. |
Definition at line 745 of file type-id.cc.
References NS_LOG_FUNCTION.
TypeId ns3::TypeId::AddAttribute | ( | std::string | name, |
std::string | help, | ||
const AttributeValue & | initialValue, | ||
Ptr< const AttributeAccessor > | accessor, | ||
Ptr< const AttributeChecker > | checker | ||
) |
Record in this TypeId the fact that a new attribute exists.
[in] | name | The name of the new attribute |
[in] | help | Some help text which describes the purpose of this attribute. |
[in] | initialValue | The initial value for this attribute. |
[in] | accessor | An instance of the associated AttributeAccessor subclass. |
[in] | checker | An instance of the associated AttributeChecker subclass. |
Definition at line 917 of file type-id.cc.
References ns3::IidManager::AddAttribute(), ATTR_SGC, ns3::AttributeValue::Copy(), ns3::Singleton< IidManager >::Get(), m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::Ns3NscStack::GetInstanceTypeId().
TypeId ns3::TypeId::AddAttribute | ( | std::string | name, |
std::string | help, | ||
uint32_t | flags, | ||
const AttributeValue & | initialValue, | ||
Ptr< const AttributeAccessor > | accessor, | ||
Ptr< const AttributeChecker > | checker | ||
) |
Record in this TypeId the fact that a new attribute exists.
[in] | name | The name of the new attribute |
[in] | help | Some help text which describes the purpose of this attribute |
[in] | flags | Flags which describe how this attribute can be read and/or written. |
[in] | initialValue | The initial value for this attribute. |
[in] | accessor | An instance of the associated AttributeAccessor subclass. |
[in] | checker | An instance of the associated AttributeChecker subclass. |
Definition at line 929 of file type-id.cc.
References ns3::IidManager::AddAttribute(), ns3::AttributeValue::Copy(), ns3::Singleton< IidManager >::Get(), m_tid, and NS_LOG_FUNCTION.
TypeId ns3::TypeId::AddConstructor | ( | void | ) |
Record in this TypeId the fact that the default constructor is accessible.
T | [explicit] The class name represented by this TypeId. |
Definition at line 592 of file type-id.h.
References ns3::Create(), DoAddConstructor(), and ns3::MakeCallback().
Referenced by ns3::Ipv6ExtensionHeader::GetTypeId(), ns3::Ipv6OptionHeader::GetTypeId(), ns3::dsr::DsrOptionHeader::GetTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::GetTypeId(), anonymous_namespace{packet-metadata-test.cc}::HistoryHeader< N >::GetTypeId(), Derived::GetTypeId(), ns3::dsr::DsrFsHeader::GetTypeId(), AttributeObjectTest::GetTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestHeader< N >::GetTypeId(), ns3::dsr::DsrOptionPad1Header::GetTypeId(), ns3::Ipv6OptionPad1Header::GetTypeId(), anonymous_namespace{packet-metadata-test.cc}::HistoryTrailer< N >::GetTypeId(), ns3::dsr::DsrOptionPadnHeader::GetTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestTrailer< N >::GetTypeId(), ns3::Ipv6OptionPadnHeader::GetTypeId(), ns3::Ipv6ExtensionHopByHopHeader::GetTypeId(), ns3::Ipv6OptionJumbogramHeader::GetTypeId(), ns3::dsr::DsrOptionRreqHeader::GetTypeId(), ns3::Ipv6ExtensionDestinationHeader::GetTypeId(), ns3::dsr::DsrRoutingHeader::GetTypeId(), ns3::Ipv6ExtensionFragmentHeader::GetTypeId(), ns3::Ipv6OptionRouterAlertHeader::GetTypeId(), ns3::Ipv6ExtensionRoutingHeader::GetTypeId(), ns3::dsr::DsrOptionRrepHeader::GetTypeId(), ns3::Ipv6ExtensionLooseRoutingHeader::GetTypeId(), ns3::dsr::DsrOptionSRHeader::GetTypeId(), ns3::Ipv6ExtensionESPHeader::GetTypeId(), ns3::Ipv6ExtensionAHHeader::GetTypeId(), ns3::dsr::DsrOptionRerrHeader::GetTypeId(), ns3::dsr::DsrOptionRerrUnreachHeader::GetTypeId(), ns3::dsr::DsrOptionRerrUnsupportHeader::GetTypeId(), ns3::dsr::DsrOptionAckReqHeader::GetTypeId(), and ns3::dsr::DsrOptionAckHeader::GetTypeId().
TypeId ns3::TypeId::AddTraceSource | ( | std::string | name, |
std::string | help, | ||
Ptr< const TraceSourceAccessor > | accessor | ||
) |
Record a new TraceSource.
[in] | name | The name of the new trace source |
[in] | help | Some help text which describes the purpose of this trace source. |
[in] | accessor | A pointer to a TraceSourceAccessor which can be used to connect/disconnect sinks to this trace source. |
Definition at line 1002 of file type-id.cc.
TypeId ns3::TypeId::AddTraceSource | ( | std::string | name, |
std::string | help, | ||
Ptr< const TraceSourceAccessor > | accessor, | ||
std::string | callback | ||
) |
Record a new TraceSource.
[in] | name | The name of the new trace source |
[in] | help | Some help text which describes the purpose of this trace source. |
[in] | accessor | A pointer to a TraceSourceAccessor which can be used to connect/disconnect sinks to this trace source. |
[in] | callback | Fully qualified typedef name for the callback signature. Generally this should begin with the "ns3::" namespace qualifier. |
Definition at line 1010 of file type-id.cc.
References ns3::IidManager::AddTraceSource(), ns3::Singleton< IidManager >::Get(), m_tid, and NS_LOG_FUNCTION.
|
private |
Implementation for AddConstructor().
Definition at line 910 of file type-id.cc.
References ns3::IidManager::AddConstructor(), ns3::Singleton< IidManager >::Get(), m_tid, and NS_LOG_FUNCTION.
Referenced by AddConstructor().
struct TypeId::AttributeInformation ns3::TypeId::GetAttribute | ( | uint32_t | i | ) | const |
Get Attribute information by index.
[in] | i | Index into attribute array |
i
. Definition at line 975 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetAttribute(), m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::cell_tooltip_callback(), ns3::cell_tooltip_callback_config_default(), ns3::ObjectBase::ConstructSelf(), StaticInformation::DoGather(), ns3::AttributeIterator::DoIterate(), ns3::Resolver::DoResolve(), GetAttributeFullName(), ns3::AttributeDefaultIterator::Iterate(), LookupAttributeByName(), PrintAllAttributes(), ns3::CommandLine::PrintAttributes(), PrintAttributesTid(), ns3::Config::Reset(), and ns3::Config::SetDefaultFailSafe().
std::string ns3::TypeId::GetAttributeFullName | ( | uint32_t | i | ) | const |
Get the Attribute name by index.
[in] | i | Index into attribute array |
i
. Definition at line 981 of file type-id.cc.
References GetAttribute(), GetName(), ns3::TypeId::AttributeInformation::name, and NS_LOG_FUNCTION.
Referenced by ns3::cell_edited_callback_config_default(), ns3::ObjectBase::ConstructSelf(), and ns3::CommandLine::PrintAttributes().
uint32_t ns3::TypeId::GetAttributeN | ( | void | ) | const |
Get the number of attributes.
Definition at line 968 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetAttributeN(), m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::cell_tooltip_callback(), ns3::ObjectBase::ConstructSelf(), StaticInformation::DoGather(), ns3::AttributeIterator::DoIterate(), ns3::Resolver::DoResolve(), ns3::AttributeDefaultIterator::Iterate(), LookupAttributeByName(), ns3::Packet::Print(), PrintAllAttributes(), PrintAttributes(), ns3::CommandLine::PrintAttributes(), PrintAttributesTid(), ns3::Config::Reset(), and ns3::Config::SetDefaultFailSafe().
Callback< ObjectBase * > ns3::TypeId::GetConstructor | ( | void | ) | const |
Get the constructor callback.
Definition at line 952 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetConstructor(), m_tid, and NS_LOG_FUNCTION.
Referenced by PacketMetadataTest::CheckHistory(), ns3::ObjectFactory::Create(), PacketTest::DoCheck(), Ipv4FragmentationTest::DoRun(), Ipv6FragmentationTest::DoRun(), ns3::Packet::Print(), ns3::Packet::PrintByteTags(), and ns3::Packet::PrintPacketTags().
std::string ns3::TypeId::GetGroupName | ( | void | ) | const |
Get the group name.
Definition at line 872 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetGroupName(), m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::CommandLine::PrintGroup(), and ns3::CommandLine::PrintGroups().
TypeId::hash_t ns3::TypeId::GetHash | ( | void | ) | const |
Get the hash.
Definition at line 888 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetHash(), and m_tid.
Referenced by UniqueTypeIdTestCase::DoRun(), and LookupTimeTestCase::DoRun().
std::string ns3::TypeId::GetName | ( | void | ) | const |
Get the name.
Definition at line 880 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetName(), m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::Packet::AddByteTag(), ns3::Packet::AddHeader(), ns3::Packet::AddPacketTag(), ns3::Packet::AddTrailer(), ns3::Object::AggregateObject(), ns3::cell_data_function_col_0(), ns3::cell_data_function_col_0_config_default(), ns3::cell_tooltip_callback(), ns3::cell_tooltip_callback_config_default(), ns3::ObjectBase::ConstructSelf(), ns3::TcpL4Protocol::CreateSocket(), PacketTest::DoCheck(), StaticInformation::DoGather(), ns3::AttributeIterator::DoIterate(), UniqueTypeIdTestCase::DoRun(), Ipv4FragmentationTest::DoRun(), Ipv6FragmentationTest::DoRun(), LookupTimeTestCase::DoRun(), ns3::LteHelper::EnableLogComponents(), GetAttributeFullName(), ns3::LteHelper::GetFfrAlgorithmType(), ns3::LteHelper::GetHandoverAlgorithmType(), ns3::MobilityHelper::GetMobilityModelType(), GetNameMap(), ns3::LteHelper::GetSchedulerType(), ns3::PacketMetadata::GetSerializedSize(), ns3::internal::PointerChecker< T >::GetUnderlyingTypeInformation(), ns3::MobilityHelper::Install(), ns3::AttributeDefaultIterator::Iterate(), ns3::operator<<(), ns3::Packet::PeekHeader(), ns3::Packet::PeekTrailer(), ns3::Packet::Print(), PrintAllAttributes(), PrintAllTraceSources(), PrintAttributes(), ns3::CommandLine::PrintAttributes(), PrintAttributesTid(), ns3::Packet::PrintByteTags(), PrintConfigPaths(), ns3::CommandLine::PrintGroup(), PrintTraceSources(), ns3::CommandLine::PrintTypeIds(), ns3::Packet::RemoveHeader(), ns3::Packet::RemovePacketTag(), ns3::Packet::RemoveTrailer(), ns3::Packet::ReplacePacketTag(), ns3::PacketMetadata::Serialize(), ns3::ObjectFactory::Set(), ns3::ObjectFactory::SetTypeId(), ns3::AttributeIterator::StartVisitArrayItem(), ns3::AttributeIterator::StartVisitObject(), and ns3::AttributeIterator::StartVisitPointerAttribute().
TypeId ns3::TypeId::GetParent | ( | void | ) | const |
Get 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 ns3::ObjectBase class only.
Definition at line 847 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetParent(), m_tid, NS_LOG_FUNCTION, and TypeId().
Referenced by ns3::cell_tooltip_callback(), ns3::ObjectBase::ConstructSelf(), ns3::Object::DoGetObject(), ns3::AttributeIterator::DoIterate(), ns3::Resolver::DoResolve(), IsChildOf(), LookupAttributeByName(), LookupTraceSourceByName(), PrintAttributes(), and PrintTraceSources().
|
static |
Get a TypeId by index.
[in] | i | Index of the TypeId. |
i
. Definition at line 797 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), NS_LOG_FUNCTION, and TypeId().
Referenced by StaticInformation::DoGather(), GetNameMap(), ns3::AttributeDefaultIterator::Iterate(), PrintAllAttributes(), PrintAllTraceSources(), ns3::CommandLine::PrintGroup(), ns3::CommandLine::PrintGroups(), ns3::CommandLine::PrintTypeIds(), and ns3::Config::Reset().
|
static |
Get the number of registered TypeIds.
Definition at line 791 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetRegisteredN(), and NS_LOG_FUNCTION_NOARGS.
Referenced by StaticInformation::DoGather(), GetNameMap(), ns3::AttributeDefaultIterator::Iterate(), PrintAllAttributes(), PrintAllTraceSources(), ns3::CommandLine::PrintGroup(), ns3::CommandLine::PrintGroups(), ns3::CommandLine::PrintTypeIds(), and ns3::Config::Reset().
std::size_t ns3::TypeId::GetSize | ( | void | ) | const |
Get the size of this object.
Definition at line 894 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetSize(), m_tid, and NS_LOG_FUNCTION.
Referenced by PrintSize().
struct TypeId::TraceSourceInformation ns3::TypeId::GetTraceSource | ( | uint32_t | i | ) | const |
Get the trace source by index.
[in] | i | Index into trace source array. |
Definition at line 995 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetTraceSource(), m_tid, and NS_LOG_FUNCTION.
Referenced by LookupTraceSourceByName(), PrintAllTraceSources(), and PrintTraceSourcesTid().
uint32_t ns3::TypeId::GetTraceSourceN | ( | void | ) | const |
Get the number of Trace sources.
Definition at line 989 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetTraceSourceN(), m_tid, and NS_LOG_FUNCTION.
Referenced by LookupTraceSourceByName(), PrintAllTraceSources(), PrintTraceSources(), and PrintTraceSourcesTid().
uint16_t ns3::TypeId::GetUid | ( | void | ) | const |
Get the internal id of this TypeId.
This is really an internal method which users are not expected to use.
Definition at line 1051 of file type-id.cc.
References m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::ByteTagList::Add(), ns3::PacketMetadata::AddHeader(), ns3::PacketMetadata::AddTrailer(), ns3::PacketMetadata::Deserialize(), ns3::WifiRadioEnergyModelHelper::DoInstall(), UniqueTypeIdTestCase::DoRun(), ns3::PacketMetadata::RemoveHeader(), and ns3::PacketMetadata::RemoveTrailer().
bool ns3::TypeId::HasConstructor | ( | void | ) | const |
Check if this TypeId has a constructor.
true
if this TypeId has a constructor Definition at line 902 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::HasConstructor(), m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::Packet::Print(), and ns3::Packet::PrintPacketTags().
bool ns3::TypeId::HasParent | ( | void | ) | const |
Check if this TypeId has a parent.
true
if this TypeId has a parent. Definition at line 854 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetParent(), m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::cell_tooltip_callback(), and ns3::AttributeIterator::DoIterate().
TypeId ns3::TypeId::HideFromDocumentation | ( | void | ) |
Hide this TypeId from documentation.
Definition at line 1021 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::HideFromDocumentation(), m_tid, and NS_LOG_FUNCTION.
Referenced by anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::GetTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestHeader< N >::GetTypeId(), and anonymous_namespace{packet-test-suite.cc}::ATestTrailer< N >::GetTypeId().
bool ns3::TypeId::IsChildOf | ( | TypeId | other | ) | const |
Check if this TypeId is a child of another.
[in] | 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 861 of file type-id.cc.
References GetParent(), and NS_LOG_FUNCTION.
Referenced by StaticInformation::DoGather(), and ns3::PacketMetadata::ItemIterator::Next().
bool ns3::TypeId::LookupAttributeByName | ( | std::string | name, |
struct AttributeInformation * | info | ||
) | const |
Find an Attribute by name.
[in] | name | The name of the requested attribute |
[out] | info | A pointer to the TypeId::AttributeInformation data structure where the result value of this method will be stored. |
true
if the requested attribute could be found. Definition at line 804 of file type-id.cc.
References GetAttribute(), GetAttributeN(), GetParent(), ns3::TypeId::AttributeInformation::name, and NS_LOG_FUNCTION.
Referenced by ns3::CommandLine::AddValue(), ns3::operator>>(), and ns3::ObjectFactory::Set().
Get a TypeId by hash.
[in] | hash | The hash to lookup |
This method cannot fail: it will crash if the input hash does not match an existing TypeId.
Definition at line 771 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetUid(), NS_ASSERT_MSG, and TypeId().
Get a TypeId by hash.
[in] | hash | The hash of the requested TypeId |
[out] | tid | A pointer to the TypeId instance where the result of this function should be stored. |
true
if the requested hash was found. Definition at line 779 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetUid(), and TypeId().
|
static |
Get a TypeId by name.
[in] | 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 751 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetUid(), NS_ASSERT_MSG, NS_LOG_FUNCTION, and TypeId().
Referenced by ns3::PointToPointEpcHelper::AddEnb(), ns3::EmuEpcHelper::AddEnb(), ns3::EpcX2::AddX2Interface(), ns3::olsr::Bug780Test::CreateNodes(), ns3::PacketMetadata::Deserialize(), ns3::EmuEpcHelper::DoInitialize(), ns3::Rip::DoInitialize(), ns3::RipNg::DoInitialize(), ns3::Resolver::DoResolve(), ns3::Rip::NotifyInterfaceUp(), ns3::RipNg::NotifyInterfaceUp(), ns3::PointToPointEpcHelper::PointToPointEpcHelper(), ns3::PyViz::RegisterCsmaLikeDevice(), ns3::PyViz::RegisterPointToPointLikeDevice(), ns3::PyViz::RegisterWifiLikeDevice(), RunSimulation(), ns3::ObjectFactory::SetTypeId(), SetupPacketReceive(), ns3::UdpEchoServer::StartApplication(), ns3::PacketSocketServer::StartApplication(), ns3::PacketSocketClient::StartApplication(), ns3::V4Ping::StartApplication(), ns3::UdpClient::StartApplication(), ns3::UdpServer::StartApplication(), ns3::Ping6::StartApplication(), ns3::BsmApplication::StartApplication(), ns3::Radvd::StartApplication(), ns3::UdpTraceClient::StartApplication(), ns3::UdpEchoClient::StartApplication(), ns3::ModelTypeidCreator::StartVisitTypeId(), and Tunnel::Tunnel().
|
static |
Get a TypeId by name.
[in] | name | The name of the requested TypeId |
[out] | tid | A pointer to the TypeId instance where the result of this function should be stored. |
true
if the requested name was found. Definition at line 759 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), ns3::IidManager::GetUid(), NS_LOG_FUNCTION, and TypeId().
Referenced by ns3::CommandLine::AddValue(), ns3::Ns3NscStack::GetInstanceTypeId(), ns3::operator>>(), ns3::CommandLine::PrintAttributes(), StaticInformation::RecordAggregationInfo(), and ns3::Config::SetDefaultFailSafe().
Ptr< const TraceSourceAccessor > ns3::TypeId::LookupTraceSourceByName | ( | std::string | name | ) | const |
Find a TraceSource by name.
If no matching trace source is found, this method returns zero.
[in] | name | The name of the requested trace source |
Definition at line 1030 of file type-id.cc.
References ns3::TypeId::TraceSourceInformation::accessor, GetParent(), GetTraceSource(), GetTraceSourceN(), ns3::TypeId::TraceSourceInformation::name, and NS_LOG_FUNCTION.
Referenced by ns3::ObjectBase::TraceConnect(), ns3::ObjectBase::TraceConnectWithoutContext(), ns3::ObjectBase::TraceDisconnect(), and ns3::ObjectBase::TraceDisconnectWithoutContext().
bool ns3::TypeId::MustHideFromDocumentation | ( | void | ) | const |
Check if this TypeId should not be listed in documentation.
true
if this TypeId should be hidden from the user. Definition at line 960 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), m_tid, ns3::IidManager::MustHideFromDocumentation(), and NS_LOG_FUNCTION.
Referenced by GetNameMap(), ns3::AttributeDefaultIterator::Iterate(), PrintAllAttributes(), and PrintAllTraceSources().
bool ns3::TypeId::SetAttributeInitialValue | ( | uint32_t | i, |
Ptr< const AttributeValue > | initialValue | ||
) |
Set the initial value of an Attribute.
[in] | i | The attribute to manipulate |
[in] | initialValue | The new initial value to use for this attribute. |
true
if the call was successfuly. Definition at line 942 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), m_tid, NS_LOG_FUNCTION, and ns3::IidManager::SetAttributeInitialValue().
Referenced by ns3::Config::Reset(), and ns3::Config::SetDefaultFailSafe().
TypeId ns3::TypeId::SetGroupName | ( | std::string | groupName | ) |
Set the group name.
[in] | 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 833 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), m_tid, NS_LOG_FUNCTION, and ns3::IidManager::SetGroupName().
Referenced by ns3::ObjectBase::GetObjectIid(), anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::GetTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestHeader< N >::GetTypeId(), and anonymous_namespace{packet-test-suite.cc}::ATestTrailer< N >::GetTypeId().
Set the parent TypeId.
[in] | 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 826 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), m_tid, NS_LOG_FUNCTION, and ns3::IidManager::SetParent().
Referenced by ns3::Ns3NscStack::GetInstanceTypeId(), ns3::ObjectBase::GetObjectIid(), ConfigExample::GetTypeId(), SampleEmitter::GetTypeId(), MyHeader::GetTypeId(), MyTag::GetTypeId(), MyObject::GetTypeId(), TestObject::GetTypeId(), ns3::Ipv4RawSocketImpl::GetTypeId(), ns3::LtePhyTag::GetTypeId(), ns3::FlowIdTag::GetTypeId(), ns3::DefaultChannelScheduler::GetTypeId(), anonymous_namespace{object-test-suite.cc}::BaseA::GetTypeId(), ns3::Dcf::GetTypeId(), ns3::Dot11sStack::GetTypeId(), ns3::TcpSocketHalfAck::GetTypeId(), ns3::MpduStandardAggregator::GetTypeId(), ns3::MsduStandardAggregator::GetTypeId(), ns3::MeshInformationElementVector::GetTypeId(), anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase::GetTypeId(), ns3::LrWpanLqiTag::GetTypeId(), ns3::SocketWriter::GetTypeId(), ns3::LteRadioBearerTag::GetTypeId(), ns3::SnrTag::GetTypeId(), ns3::WifiTxCurrentModel::GetTypeId(), ns3::AdhocWifiMac::GetTypeId(), ns3::ErrorRateModel::GetTypeId(), ns3::FlameStack::GetTypeId(), ns3::ConstantAccelerationMobilityModel::GetTypeId(), ns3::TcpGeneralErrorModel::GetTypeId(), ns3::EpcX2Header::GetTypeId(), ns3::EpsBearerTag::GetTypeId(), ns3::AmpduTag::GetTypeId(), ns3::ConstantRateWifiManager::GetTypeId(), ns3::RlcTag::GetTypeId(), ns3::WifiPhyStateHelper::GetTypeId(), ns3::ConstantPositionMobilityModel::GetTypeId(), ns3::DropTailQueue::GetTypeId(), ns3::PacketFilter::GetTypeId(), ns3::UanNoiseModel::GetTypeId(), ns3::PdcpTag::GetTypeId(), ns3::AarfWifiManager::GetTypeId(), ns3::AmpduSubframeHeader::GetTypeId(), ns3::AmsduSubframeHeader::GetTypeId(), ns3::LteRlcUm::GetTypeId(), ns3::LteRlcTm::GetTypeId(), ns3::BurstProfileManager::GetTypeId(), ns3::IpcsClassifier::GetTypeId(), ns3::SSManager::GetTypeId(), ns3::WimaxMacQueue::GetTypeId(), ns3::MeshStack::GetTypeId(), Sender::GetTypeId(), ns3::TcpOptionEnd::GetTypeId(), ns3::BasicEnergySource::GetTypeId(), ns3::LteRlcAm::GetTypeId(), ns3::BuildingListPriv::GetTypeId(), ns3::ItuR1238PropagationLossModel::GetTypeId(), ns3::BSLinkManager::GetTypeId(), ns3::IsotropicAntennaModel::GetTypeId(), ns3::Chunk::GetTypeId(), SequenceNumberTestObj::GetTypeId(), ns3::SimpleDeviceEnergyModel::GetTypeId(), ns3::ErrorChannel::GetTypeId(), ns3::Icmpv4L4Protocol::GetTypeId(), ns3::GtpuHeader::GetTypeId(), ns3::LteFfrDistributedAlgorithm::GetTypeId(), ns3::AarfcdWifiManager::GetTypeId(), ns3::CaraWifiManager::GetTypeId(), ns3::Ipv4PacketFilter::GetTypeId(), ns3::LteRlcSduStatusTag::GetTypeId(), ns3::NistErrorRateModel::GetTypeId(), ns3::Building::GetTypeId(), ns3::LteSimpleNetDevice::GetTypeId(), ns3::WimaxChannel::GetTypeId(), ns3::WimaxMacToMacHeader::GetTypeId(), ns3::Ipv6PacketFilter::GetTypeId(), ns3::dot11s::MeshHeader::GetTypeId(), ns3::ConstantVelocityMobilityModel::GetTypeId(), ns3::PositionAllocator::GetTypeId(), ns3::DelayJitterEstimationTimestampTag::GetTypeId(), ns3::PacketBurst::GetTypeId(), ns3::PacketSocketFactory::GetTypeId(), ns3::LrWpanErrorModel::GetTypeId(), ns3::ErrorChannelSixlow::GetTypeId(), ns3::BsmApplication::GetTypeId(), ns3::AmrrWifiManager::GetTypeId(), ns3::RraaWifiManager::GetTypeId(), ns3::OhBuildingsPropagationLossModel::GetTypeId(), ns3::ChannelListPriv::GetTypeId(), ns3::Tag::GetTypeId(), ns3::TcpOptionTS::GetTypeId(), ns3::BridgeChannel::GetTypeId(), ns3::JakesPropagationLossModel::GetTypeId(), ns3::AlohaNoackMacHeader::GetTypeId(), ns3::ConstantSpectrumPropagationLossModel::GetTypeId(), ns3::DataCollectionObject::GetTypeId(), ns3::LtePdcp::GetTypeId(), ns3::Ipv4RawSocketFactory::GetTypeId(), ns3::MsduAggregator::GetTypeId(), ns3::SSLinkManager::GetTypeId(), ns3::SSScheduler::GetTypeId(), ns3::WimaxConnection::GetTypeId(), BenchHeader< N >::GetTypeId(), ns3::TcpOption::GetTypeId(), ns3::PropagationDelayModel::GetTypeId(), ConfigTestObject::GetTypeId(), ns3::RandomBuildingPositionAllocator::GetTypeId(), ns3::LteRadioBearerInfo::GetTypeId(), ns3::OnoeWifiManager::GetTypeId(), ns3::StaWifiMac::GetTypeId(), ns3::WifiMacTrailer::GetTypeId(), ns3::Ipv6ExtensionDemux::GetTypeId(), ns3::Ipv6OptionDemux::GetTypeId(), ns3::dot11s::AirtimeLinkMetricCalculator::GetTypeId(), ns3::flame::FlameHeader::GetTypeId(), ns3::LoopbackNetDevice::GetTypeId(), ns3::MpiReceiver::GetTypeId(), ns3::NodeListPriv::GetTypeId(), Emitter::GetTypeId(), ns3::Probe::GetTypeId(), ns3::Asn1Header::GetTypeId(), ns3::ArfWifiManager::GetTypeId(), ns3::WifiChannel::GetTypeId(), ns3::RrcAsn1Header::GetTypeId(), ns3::MobilityModel::GetTypeId(), ns3::UdpEchoClient::GetTypeId(), ns3::RipRte::GetTypeId(), ns3::RipNgRte::GetTypeId(), ns3::PacketCounterCalculator::GetTypeId(), ns3::PcapFileWrapper::GetTypeId(), ns3::RadiotapHeader::GetTypeId(), ns3::LteHexGridEnbTopologyHelper::GetTypeId(), ns3::LteAmc::GetTypeId(), ns3::UanPropModelIdeal::GetTypeId(), ns3::UanPropModelThorp::GetTypeId(), ns3::VisualSimulatorImpl::GetTypeId(), ns3::LteFrHardAlgorithm::GetTypeId(), ns3::ParfWifiManager::GetTypeId(), ns3::WifiInformationElementVector::GetTypeId(), ns3::WifiMac::GetTypeId(), ns3::UplinkSchedulerSimple::GetTypeId(), ns3::ConnectionManager::GetTypeId(), ns3::LteTestUePhy::GetTypeId(), ns3::Trailer::GetTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestTagBase::GetTypeId(), ns3::TcpRxBuffer::GetTypeId(), ns3::TcpTxBuffer::GetTypeId(), ns3::SimpleTag::GetTypeId(), ns3::UdpSocketFactory::GetTypeId(), ns3::SpectrumErrorModel::GetTypeId(), ns3::DataOutputInterface::GetTypeId(), ns3::OmnetDataOutput::GetTypeId(), ns3::UanTransducerHd::GetTypeId(), ns3::HigherLayerTxVectorTag::GetTypeId(), ns3::LteFfrSoftAlgorithm::GetTypeId(), ns3::WaveMacLow::GetTypeId(), ns3::LteFrStrictAlgorithm::GetTypeId(), ns3::LteFrSoftAlgorithm::GetTypeId(), ns3::ApWifiMac::GetTypeId(), ns3::CosineAntennaModel::GetTypeId(), ns3::dot11s::PeerLink::GetTypeId(), ns3::MeshL2RoutingProtocol::GetTypeId(), ns3::RemoteChannelBundle::GetTypeId(), ns3::NullMessageSimulatorImpl::GetTypeId(), ns3::TcpSocketMsgBase::GetTypeId(), ns3::AparfWifiManager::GetTypeId(), ns3::UplinkScheduler::GetTypeId(), ns3::LteSimpleHelper::GetTypeId(), ns3::LteTestRrc::GetTypeId(), ns3::RttEstimator::GetTypeId(), ns3::Header::GetTypeId(), ns3::TcpHybla::GetTypeId(), ns3::PointToPointRemoteChannel::GetTypeId(), ns3::Kun2600MhzPropagationLossModel::GetTypeId(), ns3::MinMaxAvgTotalCalculator< T >::GetTypeId(), ns3::SqliteDataOutput::GetTypeId(), ns3::Uinteger16Probe::GetTypeId(), ns3::Uinteger8Probe::GetTypeId(), ns3::Uinteger32Probe::GetTypeId(), ns3::RocketfuelTopologyReader::GetTypeId(), ns3::LteFfrEnhancedAlgorithm::GetTypeId(), ns3::IdealWifiManager::GetTypeId(), ns3::MpduAggregator::GetTypeId(), ns3::MobilityBuildingInfo::GetTypeId(), ns3::LteUeMac::GetTypeId(), ns3::BSSchedulerSimple::GetTypeId(), ns3::BSScheduler::GetTypeId(), ns3::NoOpHandoverAlgorithm::GetTypeId(), ns3::TraceFadingLossModel::GetTypeId(), ns3::ServiceFlowManager::GetTypeId(), ns3::dot11s::HwmpProtocol::GetTypeId(), ns3::ParabolicAntennaModel::GetTypeId(), ns3::UdpClient::GetTypeId(), ns3::Channel::GetTypeId(), ns3::UdpEchoServer::GetTypeId(), ns3::EnergySourceContainer::GetTypeId(), ns3::SingleModelSpectrumChannel::GetTypeId(), ns3::V4Ping::GetTypeId(), ns3::TimeMinMaxAvgTotalCalculator::GetTypeId(), ns3::EpcUeNas::GetTypeId(), ns3::OrbisTopologyReader::GetTypeId(), ns3::OcbWifiMac::GetTypeId(), ns3::LteNetDevice::GetTypeId(), ns3::MapScheduler::GetTypeId(), ns3::RandomDirection2dMobilityModel::GetTypeId(), ns3::EnergyHarvesterContainer::GetTypeId(), ns3::BasicEnergyHarvester::GetTypeId(), ns3::Queue::GetTypeId(), ns3::ItuR1411NlosOverRooftopPropagationLossModel::GetTypeId(), ns3::ItuR1411LosPropagationLossModel::GetTypeId(), ns3::GridBuildingAllocator::GetTypeId(), ns3::LrWpanMacTrailer::GetTypeId(), ns3::Icmpv6L4Protocol::GetTypeId(), ns3::Ipv4ListRouting::GetTypeId(), ns3::RegularWifiMac::GetTypeId(), ns3::Ipv6Option::GetTypeId(), ns3::Ping6::GetTypeId(), ns3::TcpCongestionOps::GetTypeId(), ns3::OkumuraHataPropagationLossModel::GetTypeId(), ns3::AntennaModel::GetTypeId(), ns3::LteFrNoOpAlgorithm::GetTypeId(), ns3::LteInterference::GetTypeId(), AlternateTestObject::GetTypeId(), ns3::LteFfrSimple::GetTypeId(), ns3::MeshPointDevice::GetTypeId(), ns3::Ipv6PacketInfoTag::GetTypeId(), ns3::RandomWalk2dMobilityModel::GetTypeId(), ns3::NscTcpL4Protocol::GetTypeId(), ns3::ListScheduler::GetTypeId(), ns3::DeviceEnergyModel::GetTypeId(), ns3::UdpServer::GetTypeId(), ns3::PacketSocketServer::GetTypeId(), ns3::RvBatteryModel::GetTypeId(), ns3::SimpleChannel::GetTypeId(), ns3::Ipv4FlowProbe::GetTypeId(), ns3::BooleanProbe::GetTypeId(), ns3::DoubleProbe::GetTypeId(), ns3::GnuplotAggregator::GetTypeId(), ns3::InetTopologyReader::GetTypeId(), ns3::UanMacAloha::GetTypeId(), ns3::UanPhyCalcSinrDual::GetTypeId(), ns3::Radvd::GetTypeId(), ns3::MacHeaderType::GetTypeId(), ns3::Ipv6ListRouting::GetTypeId(), ns3::Ipv4PacketProbe::GetTypeId(), ns3::WifiNetDevice::GetTypeId(), ns3::dot11s::PeerManagementProtocol::GetTypeId(), ns3::DefaultSimulatorImpl::GetTypeId(), ns3::TcpHighSpeed::GetTypeId(), ns3::EnergyHarvester::GetTypeId(), ns3::PacketProbe::GetTypeId(), ns3::TcpSocketFactory::GetTypeId(), ns3::TcpSocket::GetTypeId(), ns3::UdpL4Protocol::GetTypeId(), ns3::UdpSocket::GetTypeId(), ns3::Ipv6FlowProbe::GetTypeId(), ns3::LrWpanCsmaCa::GetTypeId(), ns3::WifiMacQueue::GetTypeId(), ns3::SpectrumPropagationLossModel::GetTypeId(), ns3::FileAggregator::GetTypeId(), ns3::TimeProbe::GetTypeId(), ns3::TimeSeriesAdaptor::GetTypeId(), ns3::EpcSgwPgwApplication::GetTypeId(), ns3::UanMac::GetTypeId(), ns3::UanPhyPerGenDefault::GetTypeId(), ns3::LteEnbNetDevice::GetTypeId(), ns3::LteSimpleSpectrumPhy::GetTypeId(), ns3::CtrlBAckRequestHeader::GetTypeId(), ns3::HighLatencyDataTxVectorTag::GetTypeId(), ns3::Ipv6Extension::GetTypeId(), ns3::LteUeNetDevice::GetTypeId(), ns3::SimpleOfdmWimaxPhy::GetTypeId(), ns3::Ipv6PacketProbe::GetTypeId(), ns3::Ipv6PmtuCache::GetTypeId(), ns3::SocketFactory::GetTypeId(), ns3::TcpOptionWinScale::GetTypeId(), ns3::Ipv4FlowProbeTag::GetTypeId(), ns3::SpectrumChannel::GetTypeId(), ns3::LteStatsCalculator::GetTypeId(), ns3::SimulatorImpl::GetTypeId(), ns3::aodv::RoutingProtocol::GetTypeId(), anonymous_namespace{object-test-suite.cc}::DerivedA::GetTypeId(), ns3::NdiscCache::GetTypeId(), ns3::Ipv6FlowProbeTag::GetTypeId(), ns3::ArpL3Protocol::GetTypeId(), ns3::FriisSpectrumPropagationLossModel::GetTypeId(), ns3::SpectrumInterference::GetTypeId(), ns3::SpectrumPhy::GetTypeId(), ns3::Ipv4Interface::GetTypeId(), ns3::Ipv4RoutingProtocol::GetTypeId(), ns3::LteRlc::GetTypeId(), ns3::BandwidthManager::GetTypeId(), ns3::Ipv6Interface::GetTypeId(), ns3::dsdv::RoutingProtocol::GetTypeId(), ns3::LteUeRrcProtocolIdeal::GetTypeId(), ns3::PropagationLossModel::GetTypeId(), ns3::LrWpanNetDevice::GetTypeId(), ns3::DataCollector::GetTypeId(), ns3::EpcEnbApplication::GetTypeId(), ns3::UanMacCw::GetTypeId(), ns3::Synchronizer::GetTypeId(), ns3::UanNoiseModelDefault::GetTypeId(), ns3::ApplicationPacketProbe::GetTypeId(), ns3::BsServiceFlowManager::GetTypeId(), ns3::SeqTsHeader::GetTypeId(), ns3::MeshWifiInterfaceMac::GetTypeId(), ns3::PointToPointChannel::GetTypeId(), ns3::Cost231PropagationLossModel::GetTypeId(), ns3::RadioEnvironmentMapHelper::GetTypeId(), ns3::EpcMme::GetTypeId(), ns3::UanNetDevice::GetTypeId(), ns3::LteEnbMac::GetTypeId(), ns3::YansErrorRateModel::GetTypeId(), ns3::SimpleOfdmWimaxChannel::GetTypeId(), ns3::RandomWaypointMobilityModel::GetTypeId(), ns3::PacketSocketClient::GetTypeId(), ns3::FlowProbe::GetTypeId(), ns3::UdpSocketImpl::GetTypeId(), ns3::SpectrumAnalyzer::GetTypeId(), ns3::LteSignalingRadioBearerInfo::GetTypeId(), ns3::HybridBuildingsPropagationLossModel::GetTypeId(), ns3::UplinkSchedulerRtps::GetTypeId(), ns3::HeapScheduler::GetTypeId(), ns3::aodv::TypeHeader::GetTypeId(), ns3::NscTcpSocketImpl::GetTypeId(), ns3::RemSpectrumPhy::GetTypeId(), ns3::UanChannel::GetTypeId(), ns3::UanHeaderRcData::GetTypeId(), ns3::BuildingsPropagationLossModel::GetTypeId(), ns3::SsServiceFlowManager::GetTypeId(), ns3::LtePdcpHeader::GetTypeId(), ns3::dot11s::PeerLinkOpenStart::GetTypeId(), ns3::Ipv6RoutingProtocol::GetTypeId(), ns3::UdpTraceClient::GetTypeId(), ns3::NonCommunicatingNetDevice::GetTypeId(), ns3::LteUePowerControl::GetTypeId(), ns3::UanHeaderCommon::GetTypeId(), ns3::WaveBsmStats::GetTypeId(), ns3::ChannelManager::GetTypeId(), ns3::SteadyStateRandomWaypointMobilityModel::GetTypeId(), ns3::LlcSnapHeader::GetTypeId(), ns3::SimpleNetDevice::GetTypeId(), ns3::Ipv4NixVectorRouting::GetTypeId(), ns3::JakesProcess::GetTypeId(), ns3::PfifoFastQueueDisc::GetTypeId(), ns3::RealtimeSimulatorImpl::GetTypeId(), ns3::BaseStationNetDevice::GetTypeId(), ns3::dsdv::DsdvHeader::GetTypeId(), ns3::CalendarScheduler::GetTypeId(), ns3::dot11s::HwmpTag::GetTypeId(), ns3::LteUeRrcProtocolReal::GetTypeId(), ns3::Node::GetTypeId(), ns3::MacStatsCalculator::GetTypeId(), ns3::LteFfrAlgorithm::GetTypeId(), ns3::IpL4Protocol::GetTypeId(), ns3::YansWifiChannel::GetTypeId(), ns3::QosTag::GetTypeId(), ns3::WimaxPhy::GetTypeId(), ns3::HierarchicalMobilityModel::GetTypeId(), ns3::TcpSeqErrorModel::GetTypeId(), ns3::WaveformGenerator::GetTypeId(), ns3::BSSchedulerRtps::GetTypeId(), ns3::dot11s::HwmpRtable::GetTypeId(), ns3::SubscriberStationNetDevice::GetTypeId(), ns3::TcpOptionNOP::GetTypeId(), ns3::aodv::DeferredRouteOutputTag::GetTypeId(), ns3::AcousticModemEnergyModel::GetTypeId(), ns3::ConfigStore::GetTypeId(), ns3::flame::FlameTag::GetTypeId(), IPv4TestTag::GetTypeId(), ns3::CsmaNetDevice::GetTypeId(), ns3::UanMacRcGw::GetTypeId(), ns3::VirtualNetDevice::GetTypeId(), ns3::flame::FlameRtable::GetTypeId(), ns3::dsdv::DeferredRouteOutputTag::GetTypeId(), ns3::Application::GetTypeId(), ns3::PppHeader::GetTypeId(), ns3::TvSpectrumTransmitter::GetTypeId(), ns3::PhyTxStatsCalculator::GetTypeId(), ns3::LteEnbPhy::GetTypeId(), ns3::Ipv6L3Protocol::GetTypeId(), EpsBearerTagUdpClient::GetTypeId(), ns3::PhyRxStatsCalculator::GetTypeId(), ns3::YansWifiPhy::GetTypeId(), ns3::ManagementMessageType::GetTypeId(), ns3::dsr::DsrGraReply::GetTypeId(), ns3::Ipv6RawSocketFactory::GetTypeId(), ns3::EpcHelper::GetTypeId(), ns3::PointToPointEpcHelper::GetTypeId(), ns3::CoDelQueueDisc::GetTypeId(), ns3::DcaTxop::GetTypeId(), ns3::LtePhy::GetTypeId(), ns3::PointToPointNetDevice::GetTypeId(), ns3::UanPhyCalcSinr::GetTypeId(), ns3::PyVizPacketTag::GetTypeId(), ns3::Ipv6RawSocketImpl::GetTypeId(), ns3::TcpL4Protocol::GetTypeId(), ns3::BridgeNetDevice::GetTypeId(), ns3::DummyCongControl::GetTypeId(), ns3::EmuEpcHelper::GetTypeId(), ns3::Scheduler::GetTypeId(), MyApp::GetTypeId(), ns3::ChannelCoordinator::GetTypeId(), ns3::LteHandoverAlgorithm::GetTypeId(), ns3::PhyStatsCalculator::GetTypeId(), ns3::Socket::GetTypeId(), ns3::ArpCache::GetTypeId(), ns3::A3RsrpHandoverAlgorithm::GetTypeId(), ns3::Icmpv4Header::GetTypeId(), ns3::LteDataRadioBearerInfo::GetTypeId(), ns3::PacketSink::GetTypeId(), ns3::Ipv6StaticRouting::GetTypeId(), ns3::LiIonEnergySource::GetTypeId(), ns3::TcpWestwood::GetTypeId(), Receiver::GetTypeId(), IPv6TestTag::GetTypeId(), ns3::BulkSendApplication::GetTypeId(), ns3::BinaryErrorModel::GetTypeId(), ns3::Ipv4GlobalRouting::GetTypeId(), ns3::Ipv4StaticRouting::GetTypeId(), ns3::UplinkSchedulerMBQoS::GetTypeId(), ns3::RrFfMacScheduler::GetTypeId(), ns3::AlohaNoackNetDevice::GetTypeId(), ns3::WallClockSynchronizer::GetTypeId(), ns3::CoDelTimestampTag::GetTypeId(), ns3::ListPositionAllocator::GetTypeId(), ns3::LteRlcHeader::GetTypeId(), anonymous_namespace{object-test-suite.cc}::BaseB::GetTypeId(), ns3::FfMacScheduler::GetTypeId(), ns3::SllHeader::GetTypeId(), ns3::FdMtFfMacScheduler::GetTypeId(), ns3::TtaFfMacScheduler::GetTypeId(), ns3::TdMtFfMacScheduler::GetTypeId(), ns3::dsr::DsrOptions::GetTypeId(), ns3::SixLowPanNetDevice::GetTypeId(), ns3::RandomRoomPositionAllocator::GetTypeId(), ns3::AthstatsWifiTraceSink::GetTypeId(), ns3::flame::FlameProtocol::GetTypeId(), ns3::WimaxNetDevice::GetTypeId(), ns3::LteUePhy::GetTypeId(), ns3::Ipv4::GetTypeId(), ns3::Tlv::GetTypeId(), ns3::EnergySource::GetTypeId(), ns3::EpcX2::GetTypeId(), ns3::PacketSocket::GetTypeId(), ns3::RandomPropagationDelayModel::GetTypeId(), ns3::UanPhyPerUmodem::GetTypeId(), ns3::Ipv4L3Protocol::GetTypeId(), ns3::EpcX2HandoverRequestHeader::GetTypeId(), SimpleSource::GetTypeId(), ns3::GaussMarkovMobilityModel::GetTypeId(), ns3::RedQueueDisc::GetTypeId(), ns3::PfFfMacScheduler::GetTypeId(), ns3::Ipv6::GetTypeId(), ns3::olsr::RoutingProtocol::GetTypeId(), ns3::FdBetFfMacScheduler::GetTypeId(), ns3::A2A4RsrqHandoverAlgorithm::GetTypeId(), ns3::TdBetFfMacScheduler::GetTypeId(), ns3::TcpOptionMSS::GetTypeId(), ns3::ShannonSpectrumErrorModel::GetTypeId(), ns3::TrafficControlLayer::GetTypeId(), ns3::CqaFfMacScheduler::GetTypeId(), ns3::OfdmDownlinkFramePrefix::GetTypeId(), ns3::LinearWifiTxCurrentModel::GetTypeId(), ns3::PacketSizeMinMaxAvgTotalCalculator::GetTypeId(), ns3::WifiRemoteStationManager::GetTypeId(), ns3::BinaryErrorSixlowModel::GetTypeId(), ns3::FdNetDevice::GetTypeId(), ns3::LteAnr::GetTypeId(), ns3::OnOffApplication::GetTypeId(), ns3::WaypointMobilityModel::GetTypeId(), ns3::RadioBearerStatsCalculator::GetTypeId(), ns3::UanPhyDual::GetTypeId(), ns3::GrantedTimeWindowMpiInterface::GetTypeId(), ns3::Object::GetTypeId(), ns3::PfifoFastIpv6PacketFilter::GetTypeId(), ns3::TdTbfqFfMacScheduler::GetTypeId(), ns3::FdTbfqFfMacScheduler::GetTypeId(), ns3::PssFfMacScheduler::GetTypeId(), ns3::EthernetTrailer::GetTypeId(), ns3::CsmaChannel::GetTypeId(), ns3::HalfDuplexIdealPhy::GetTypeId(), anonymous_namespace{object-test-suite.cc}::DerivedB::GetTypeId(), ns3::ArpHeader::GetTypeId(), ns3::TcpSocketState::GetTypeId(), ns3::ChannelScheduler::GetTypeId(), ns3::dsr::DsrRouting::GetTypeId(), ns3::GridPositionAllocator::GetTypeId(), ns3::Ipv6Header::GetTypeId(), ns3::LteEnbRrcProtocolIdeal::GetTypeId(), ns3::DistributedSimulatorImpl::GetTypeId(), ns3::RandomVariableStream::GetTypeId(), ns3::EdcaTxopN::GetTypeId(), ns3::TcpFlagErrorModel::GetTypeId(), ns3::dot11s::PeerLinkCloseStart::GetTypeId(), ns3::Ipv6OptionPad1::GetTypeId(), ns3::LteHelper::GetTypeId(), ns3::Ipv4PacketInfoTag::GetTypeId(), ns3::VsaManager::GetTypeId(), TimestampTag::GetTypeId(), ns3::UeManager::GetTypeId(), ns3::GenericMacHeader::GetTypeId(), ns3::WifiMacHeader::GetTypeId(), ns3::ConstantSpeedPropagationDelayModel::GetTypeId(), ns3::aodv::RreqHeader::GetTypeId(), ns3::EthernetHeader::GetTypeId(), ns3::TapBridge::GetTypeId(), ns3::MultiModelSpectrumChannel::GetTypeId(), ns3::LteEnbRrcProtocolReal::GetTypeId(), ns3::DataCalculator::GetTypeId(), ns3::LteTestPdcp::GetTypeId(), ns3::UdpHeader::GetTypeId(), ns3::ErrorModel::GetTypeId(), ns3::LteUeRrc::GetTypeId(), ns3::Icmpv6Header::GetTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestHeaderBase::GetTypeId(), ns3::SameRoomPositionAllocator::GetTypeId(), ns3::TcpOptionUnknown::GetTypeId(), ns3::olsr::PacketHeader::GetTypeId(), ns3::MgtAssocRequestHeader::GetTypeId(), ns3::UanPhyPer::GetTypeId(), ns3::RttMeanDeviation::GetTypeId(), ns3::WaveNetDevice::GetTypeId(), ns3::LteRlcAmHeader::GetTypeId(), ns3::HighLatencyRtsTxVectorTag::GetTypeId(), ns3::UanHeaderRcRts::GetTypeId(), TracedValueCallbackTestCase::CheckTvCb< T >::GetTypeId(), ns3::PfifoFastIpv4PacketFilter::GetTypeId(), ns3::QueueDiscClass::GetTypeId(), ns3::Icmpv4Echo::GetTypeId(), ns3::EpcX2HandoverRequestAckHeader::GetTypeId(), ns3::dsr::DsrNetworkQueue::GetTypeId(), ns3::TopologyReader::GetTypeId(), ns3::TcpSocketSmallAcks::GetTypeId(), ns3::UanPhyCalcSinrDefault::GetTypeId(), BenchTag< N >::GetTypeId(), anonymous_namespace{packet-metadata-test.cc}::HistoryTrailerBase::GetTypeId(), ns3::UanTransducer::GetTypeId(), ns3::FlowMonitor::GetTypeId(), ns3::TcpNewReno::GetTypeId(), DerivedConfigTestObject::GetTypeId(), ns3::dot11s::PeerLinkConfirmStart::GetTypeId(), ns3::VendorSpecificActionHeader::GetTypeId(), ns3::Ipv6OptionPadn::GetTypeId(), ns3::RipNgHeader::GetTypeId(), ns3::MinstrelWifiManager::GetTypeId(), ns3::RandomPropagationLossModel::GetTypeId(), BaseConfigObject::GetTypeId(), ns3::RipHeader::GetTypeId(), ns3::Icmpv4DestinationUnreachable::GetTypeId(), ns3::LteTestMac::GetTypeId(), ns3::LteSpectrumPhy::GetTypeId(), ns3::SixLowPanHc1::GetTypeId(), ns3::FixedRoomPositionAllocator::GetTypeId(), ns3::Ipv6ExtensionHopByHop::GetTypeId(), ns3::LteRlcSm::GetTypeId(), ns3::BandwidthRequestHeader::GetTypeId(), ns3::EpcX2HandoverPreparationFailureHeader::GetTypeId(), ns3::aodv::RrepHeader::GetTypeId(), ns3::UanMacRc::GetTypeId(), ns3::Rip::GetTypeId(), ns3::RipNg::GetTypeId(), ns3::dsr::DsrPassiveBuffer::GetTypeId(), ns3::RrcConnectionRequestHeader::GetTypeId(), DerivedConfigObject::GetTypeId(), ns3::RngRsp::GetTypeId(), ns3::RateErrorModel::GetTypeId(), ns3::CtrlBAckResponseHeader::GetTypeId(), ns3::UanPhyCalcSinrFhFsk::GetTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestTrailerBase::GetTypeId(), ns3::WifiPhy::GetTypeId(), ns3::Ipv6OptionJumbogram::GetTypeId(), ns3::RandomRectanglePositionAllocator::GetTypeId(), ns3::dsr::DsrRreqTable::GetTypeId(), ns3::HighLatencyCtsToSelfTxVectorTag::GetTypeId(), ns3::QueueDisc::GetTypeId(), ns3::MinstrelHtWifiManager::GetTypeId(), ns3::EpcX2SnStatusTransferHeader::GetTypeId(), ns3::WifiRadioEnergyModel::GetTypeId(), ns3::Ipv6ExtensionDestination::GetTypeId(), ns3::Ucd::GetTypeId(), ns3::NetDeviceQueueInterface::GetTypeId(), ns3::LrWpanMac::GetTypeId(), ns3::GrantManagementSubheader::GetTypeId(), ns3::Ipv4Header::GetTypeId(), ns3::Dcd::GetTypeId(), ns3::RandomBoxPositionAllocator::GetTypeId(), ns3::PacketSocketTag::GetTypeId(), ns3::UanPhyGen::GetTypeId(), ns3::aodv::RrepAckHeader::GetTypeId(), ns3::UniformRandomVariable::GetTypeId(), ns3::MgtAssocResponseHeader::GetTypeId(), ns3::UanHeaderRcCtsGlobal::GetTypeId(), ns3::Ipv6OptionRouterAlert::GetTypeId(), ns3::Icmpv6OptionHeader::GetTypeId(), ns3::EpcX2UeContextReleaseHeader::GetTypeId(), ns3::TcpSocketBase::GetTypeId(), ns3::Icmpv4TimeExceeded::GetTypeId(), ns3::LrWpanPhy::GetTypeId(), ns3::Ipv6ExtensionFragment::GetTypeId(), ns3::FriisPropagationLossModel::GetTypeId(), ns3::DeviceNameTag::GetTypeId(), ns3::RandomDiscPositionAllocator::GetTypeId(), ns3::FragmentationSubheader::GetTypeId(), ns3::EpcTestRrc::GetTypeId(), ns3::aodv::RerrHeader::GetTypeId(), ns3::EpcX2LoadInformationHeader::GetTypeId(), ns3::CounterCalculator< T >::GetTypeId(), ns3::dsr::DsrOptionPad1::GetTypeId(), ns3::UanPropModel::GetTypeId(), ns3::TcpHeader::GetTypeId(), ns3::dsr::DsrRouteCache::GetTypeId(), ns3::olsr::MessageHeader::GetTypeId(), ns3::BurstErrorModel::GetTypeId(), ns3::dsr::DsrOptionPadn::GetTypeId(), ns3::EpcX2ResourceStatusUpdateHeader::GetTypeId(), ns3::DsaReq::GetTypeId(), ns3::ConstantRandomVariable::GetTypeId(), ns3::MgtProbeRequestHeader::GetTypeId(), ns3::dsr::DsrOptionRreq::GetTypeId(), ns3::UniformDiscPositionAllocator::GetTypeId(), ns3::DlMap::GetTypeId(), ns3::UlMap::GetTypeId(), ns3::UanHeaderRcCts::GetTypeId(), ns3::NetDevice::GetTypeId(), ns3::Icmpv6NS::GetTypeId(), ns3::dsr::DsrOptionRrep::GetTypeId(), ns3::TwoRayGroundPropagationLossModel::GetTypeId(), ns3::SixLowPanFrag1::GetTypeId(), ns3::ListErrorModel::GetTypeId(), RoutingHelper::GetTypeId(), ns3::DsaRsp::GetTypeId(), ns3::dsr::DsrOptionSR::GetTypeId(), ns3::SequentialRandomVariable::GetTypeId(), ns3::LrWpanMacHeader::GetTypeId(), ns3::ReceiveListErrorModel::GetTypeId(), ns3::IdealHandoverPreparationInfoHeader::GetTypeId(), ns3::dsr::DsrOptionRerr::GetTypeId(), ns3::Ipv6ExtensionRouting::GetTypeId(), ns3::UanHeaderRcAck::GetTypeId(), ns3::Icmpv6NA::GetTypeId(), ns3::DsaAck::GetTypeId(), ns3::MgtProbeResponseHeader::GetTypeId(), ns3::SixLowPanFragN::GetTypeId(), ns3::dsr::DsrOptionAckReq::GetTypeId(), ns3::Ipv6ExtensionRoutingDemux::GetTypeId(), ns3::MgtBeaconHeader::GetTypeId(), ns3::LogDistancePropagationLossModel::GetTypeId(), ns3::RngReq::GetTypeId(), ns3::UanPhy::GetTypeId(), ns3::MacLow::GetTypeId(), ns3::dsr::DsrOptionAck::GetTypeId(), ns3::LteEnbRrc::GetTypeId(), ns3::IdealHandoverCommandHeader::GetTypeId(), ns3::ExponentialRandomVariable::GetTypeId(), ns3::SixLowPanIpv6::GetTypeId(), ns3::Ipv6ExtensionLooseRouting::GetTypeId(), ns3::Icmpv6RA::GetTypeId(), ns3::GlobalRouter::GetTypeId(), ns3::ThreeLogDistancePropagationLossModel::GetTypeId(), ns3::Ipv6ExtensionESP::GetTypeId(), ns3::WifiActionHeader::GetTypeId(), ns3::PbbPacket::GetTypeId(), ns3::MgtAddBaRequestHeader::GetTypeId(), ns3::ParetoRandomVariable::GetTypeId(), ns3::Ipv6ExtensionAH::GetTypeId(), ns3::NakagamiPropagationLossModel::GetTypeId(), ns3::SixLowPanIphc::GetTypeId(), ns3::FixedRssLossModel::GetTypeId(), WifiPhyStats::GetTypeId(), ns3::MatrixPropagationLossModel::GetTypeId(), ns3::MgtAddBaResponseHeader::GetTypeId(), ns3::Icmpv6RS::GetTypeId(), ns3::AnimByteTag::GetTypeId(), ns3::RangePropagationLossModel::GetTypeId(), ns3::Icmpv6Redirection::GetTypeId(), ns3::WeibullRandomVariable::GetTypeId(), ns3::MgtDelBaHeader::GetTypeId(), ns3::Icmpv6Echo::GetTypeId(), ns3::SixLowPanNhcExtension::GetTypeId(), ns3::SocketAddressTag::GetTypeId(), ns3::Icmpv6DestinationUnreachable::GetTypeId(), ns3::NormalRandomVariable::GetTypeId(), ns3::SocketIpTtlTag::GetTypeId(), ns3::SocketIpv6HopLimitTag::GetTypeId(), ns3::Icmpv6TooBig::GetTypeId(), ns3::SixLowPanUdpNhcExtension::GetTypeId(), ns3::SocketSetDontFragmentTag::GetTypeId(), ns3::Icmpv6TimeExceeded::GetTypeId(), ns3::SocketIpTosTag::GetTypeId(), ns3::SocketIpv6TclassTag::GetTypeId(), ns3::Icmpv6ParameterError::GetTypeId(), ns3::LogNormalRandomVariable::GetTypeId(), ns3::Icmpv6OptionMtu::GetTypeId(), ns3::Icmpv6OptionPrefixInformation::GetTypeId(), ns3::GammaRandomVariable::GetTypeId(), ns3::Icmpv6OptionLinkLayerAddress::GetTypeId(), ns3::ErlangRandomVariable::GetTypeId(), ns3::Icmpv6OptionRedirected::GetTypeId(), ns3::TriangularRandomVariable::GetTypeId(), ns3::ZipfRandomVariable::GetTypeId(), ns3::ZetaRandomVariable::GetTypeId(), ns3::DeterministicRandomVariable::GetTypeId(), and ns3::EmpiricalRandomVariable::GetTypeId().
TypeId ns3::TypeId::SetParent | ( | void | ) |
TypeId ns3::TypeId::SetSize | ( | std::size_t | size | ) |
Set the size of this type.
Call this way:
This is done automatically by NS_LOG_ENSURE_REGISTERED() A ridiculously large reported size is a symptom that the type hasn't been registered.
[in] | size | The size of the object, in bytes. |
Definition at line 840 of file type-id.cc.
References ns3::Singleton< IidManager >::Get(), m_tid, NS_LOG_FUNCTION, and ns3::IidManager::SetSize().
void ns3::TypeId::SetUid | ( | uint16_t | tid | ) |
Set the internal id of this TypeId.
[in] | tid | The internal integer which uniquely identifies this TypeId. This TypeId should already have been registered. |
Typically this is used in serialization/deserialization.
This method is even more internal than GetUid(). Use at your own risk and don't be surprised that it eats raw babies on full-moon nights.
Definition at line 1057 of file type-id.cc.
References m_tid, and NS_LOG_FUNCTION.
Referenced by ns3::PacketMetadata::GetSerializedSize(), ns3::ByteTagList::Iterator::Next(), ns3::PacketMetadata::ItemIterator::Next(), and ns3::PacketMetadata::Serialize().
Comparison operator.
[in] | a | One value. |
[in] | b | The other value. |
Definition at line 1083 of file type-id.cc.
|
related |
Output streamer.
[in,out] | os | The output stream. |
[in] | tid | The TypeId. |
Definition at line 1063 of file type-id.cc.
|
related |
Input Streamer.
[in,out] | is | The input stream. |
[out] | tid | The TypeId to set from the stream. |
Definition at line 1068 of file type-id.cc.
|
private |
The TypeId value.
Definition at line 515 of file type-id.h.
Referenced by AddAttribute(), AddTraceSource(), DoAddConstructor(), GetAttribute(), GetAttributeN(), GetConstructor(), GetGroupName(), GetHash(), GetName(), GetParent(), GetSize(), GetTraceSource(), GetTraceSourceN(), GetUid(), HasConstructor(), HasParent(), HideFromDocumentation(), MustHideFromDocumentation(), ns3::operator!=(), ns3::operator<(), operator=(), ns3::operator==(), SetAttributeInitialValue(), SetGroupName(), SetParent(), SetSize(), SetUid(), and TypeId().