ns-3
|
implement the ns-3 type and attribute system More...
#include <object-base.h>
Public Member Functions | |
virtual TypeId | GetInstanceTypeId (void) const =0 |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::ObjectBase. | |
Protected Member Functions | |
virtual void | NotifyConstructionCompleted (void) |
void | ConstructSelf (const AttributeConstructionList &attributes) |
implement the ns-3 type and attribute system
Every class which wants to integrate in the ns-3 type and attribute system should derive from this base class. This base class provides:
void ns3::ObjectBase::ConstructSelf | ( | const AttributeConstructionList & | attributes | ) | [protected] |
attributes | the attribute values used to initialize the member variables of this object's instance. |
Invoked from subclasses to initialize all of their attribute members. This method will typically be invoked automatically from ns3::CreateObject if your class derives from ns3::Object. If you derive from ns3::ObjectBase directly, you should make sure that you invoke this method from your most-derived constructor.
References ns3::TypeId::ATTR_CONSTRUCT, ns3::TypeId::GetAttribute(), ns3::TypeId::GetAttributeFullName(), ns3::TypeId::GetAttributeN(), GetInstanceTypeId(), ns3::TypeId::GetName(), ns3::TypeId::GetParent(), GetTypeId(), NotifyConstructionCompleted(), and NS_LOG_DEBUG.
void ns3::ObjectBase::GetAttribute | ( | std::string | name, |
AttributeValue & | value | ||
) | const |
name | the name of the attribute to read |
value | a reference to the value where the result should be stored. |
If the input attribute name does not exist, this method crashes.
References ns3::TypeId::ATTR_GET, ns3::AttributeChecker::Create(), ns3::AttributeAccessor::Get(), GetInstanceTypeId(), ns3::AttributeAccessor::HasGetter(), NS_FATAL_ERROR, and ns3::AttributeValue::SerializeToString().
Referenced by ns3::cell_data_function_col_1(), ns3::cell_tooltip_callback(), ns3::UanPhyDual::GetModesPhy1(), ns3::UanPhyDual::GetPerModelPhy1(), ns3::UanPhyDual::GetSinrModelPhy1(), and ns3::Packet::Print().
bool ns3::ObjectBase::GetAttributeFailSafe | ( | std::string | name, |
AttributeValue & | attribute | ||
) | const |
name | the name of the attribute to read |
attribute | the attribute where the result value should be stored |
References ns3::TypeId::ATTR_GET, ns3::AttributeChecker::Create(), ns3::AttributeAccessor::Get(), GetInstanceTypeId(), ns3::AttributeAccessor::HasGetter(), and ns3::AttributeValue::SerializeToString().
virtual TypeId ns3::ObjectBase::GetInstanceTypeId | ( | void | ) | const [pure virtual] |
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.
Implemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, ns3::Icmpv6OptionMtu, ns3::Icmpv6ParameterError, ns3::Icmpv6TimeExceeded, ns3::Icmpv6TooBig, ns3::Icmpv6DestinationUnreachable, ns3::Icmpv6Echo, ns3::Icmpv6Redirection, ns3::Icmpv6RS, ns3::Ipv6ExtensionAHHeader, ns3::SocketSetDontFragmentTag, ns3::SocketIpTtlTag, ns3::Ipv6ExtensionESPHeader, ns3::SocketAddressTag, ns3::PbbPacket, ns3::Icmpv6RA, ns3::Ipv6ExtensionLooseRoutingHeader, ns3::Icmpv6NA, ns3::Ipv6ExtensionRoutingHeader, ns3::AnimByteTag, ns3::UanHeaderRcAck, ns3::MgtDelBaHeader, ns3::Icmpv6NS, ns3::Ipv6OptionRouterAlertHeader, ns3::Ipv6ExtensionFragmentHeader, ns3::UanHeaderRcCts, ns3::MgtAddBaResponseHeader, ns3::aodv::RerrHeader, ns3::Ipv6ExtensionDestinationHeader, ns3::Ipv6OptionJumbogramHeader, ns3::MgtAddBaRequestHeader, ns3::aodv::RrepAckHeader, ns3::Icmpv6OptionHeader, ns3::WifiActionHeader, ns3::UanHeaderRcCtsGlobal, ns3::Ipv6ExtensionHopByHopHeader, ns3::Ipv6OptionPadnHeader, ns3::Ipv4Header, ns3::olsr::MessageHeader, ns3::aodv::RrepHeader, ns3::Ipv6OptionPad1Header, ns3::UanHeaderRcRts, ns3::Icmpv4TimeExceeded, ns3::MgtProbeResponseHeader, ns3::TcpHeader, ns3::FlowMonitor, ns3::Icmpv6Header, ns3::aodv::RreqHeader, ns3::MgtProbeRequestHeader, ns3::CtrlBAckResponseHeader, ns3::EthernetHeader, ns3::Object, ns3::olsr::PacketHeader, ns3::WifiMacHeader, ns3::EthernetTrailer, ns3::UdpHeader, ns3::UanHeaderCommon, ns3::MgtAssocResponseHeader, ns3::Icmpv4Echo, ns3::Tlv, ns3::UanHeaderRcData, ns3::dot11s::PeerLinkFrameStart, ns3::ManagementMessageType, ns3::Ipv6Header, ns3::flame::FlameTag, ns3::Ipv6PacketInfoTag, ns3::QosTag, ns3::dsdv::DsdvHeader, ns3::Ipv4PacketInfoTag, ns3::dot11s::HwmpTag, ns3::PppHeader, ns3::aodv::TypeHeader, ns3::Ipv6OptionHeader, ns3::MacHeaderType, ns3::MgtAssocRequestHeader, ns3::ArpHeader, ns3::Icmpv4Header, ns3::RadiotapHeader, ns3::Ipv6ExtensionHeader, ns3::CtrlBAckRequestHeader, ns3::WifiInformationElementVector, ns3::LlcSnapHeader, ns3::flame::FlameHeader, ns3::ConfigStore, ns3::WifiMacTrailer, ns3::dot11s::MeshHeader, ns3::WimaxMacToMacHeader, ns3::AmsduSubframeHeader, ns3::LteMacHeader, ns3::AlohaNoackMacHeader, ns3::Ns3NscStack, and ns3::FlowIdTag.
Referenced by ns3::Packet::AddByteTag(), ns3::Packet::AddHeader(), ns3::Packet::AddPacketTag(), ns3::Packet::AddTrailer(), ConstructSelf(), ns3::Packet::FindFirstMatchingByteTag(), GetAttribute(), GetAttributeFailSafe(), ns3::ByteTagIterator::Item::GetTag(), ns3::PacketTagIterator::Item::GetTag(), ns3::Packet::PeekHeader(), ns3::Packet::PeekTrailer(), ns3::PacketTagList::Remove(), ns3::Packet::RemoveHeader(), ns3::Packet::RemovePacketTag(), ns3::Packet::RemoveTrailer(), SetAttribute(), SetAttributeFailSafe(), TraceConnect(), TraceConnectWithoutContext(), TraceDisconnect(), and TraceDisconnectWithoutContext().
TypeId ns3::ObjectBase::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::ObjectBase.
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, ns3::Icmpv6OptionMtu, ns3::Icmpv6ParameterError, ns3::Icmpv6TimeExceeded, ns3::Icmpv6TooBig, ns3::Icmpv6DestinationUnreachable, ns3::Icmpv6Echo, ns3::Icmpv6Redirection, ns3::Icmpv6RS, ns3::Ipv6ExtensionAHHeader, ns3::SocketSetDontFragmentTag, ns3::SocketIpTtlTag, ns3::Ipv6ExtensionAH, ns3::SocketAddressTag, ns3::Ipv6ExtensionESPHeader, ns3::PbbPacket, ns3::Ipv6ExtensionESP, ns3::Icmpv6RA, ns3::GlobalRouter, ns3::RangePropagationLossModel, ns3::Ipv6ExtensionLooseRouting, ns3::Ipv6ExtensionLooseRoutingHeader, ns3::MatrixPropagationLossModel, ns3::FixedRssLossModel, ns3::Ipv6ExtensionRoutingDemux, ns3::ofi::LearningController, ns3::Icmpv6NA, ns3::Ipv6ExtensionRoutingHeader, ns3::NakagamiPropagationLossModel, ns3::Ipv6ExtensionRouting, ns3::ThreeLogDistancePropagationLossModel, ns3::AnimByteTag, ns3::MgtDelBaHeader, ns3::Icmpv6NS, ns3::Ipv6OptionRouterAlertHeader, ns3::ofi::Controller, ns3::Ipv6ExtensionFragmentHeader, ns3::UanHeaderRcAck, ns3::LogDistancePropagationLossModel, ns3::MgtAddBaResponseHeader, ns3::aodv::RerrHeader, ns3::Ipv6ExtensionDestinationHeader, ns3::Ipv6OptionJumbogramHeader, ns3::MgtAddBaRequestHeader, ns3::UanHeaderRcCts, ns3::aodv::RrepAckHeader, ns3::Ipv6OptionRouterAlert, ns3::UniformDiscPositionAllocator, ns3::Icmpv6OptionHeader, ns3::WifiActionHeader, ns3::ReceiveListErrorModel, ns3::Ipv6ExtensionFragment, ns3::TwoRayGroundPropagationLossModel, ns3::Ipv6ExtensionHopByHopHeader, ns3::Ipv4Header, ns3::UanPropModel, ns3::Ipv6OptionPadnHeader, ns3::RandomDiscPositionAllocator, ns3::ListErrorModel, ns3::olsr::MessageHeader, ns3::Ipv6OptionJumbogram, ns3::UanHeaderRcCtsGlobal, ns3::RandomBoxPositionAllocator, ns3::aodv::RrepHeader, ns3::Ipv6ExtensionDestination, ns3::RandomRectanglePositionAllocator, ns3::UanPhyGen, ns3::UanPhy, ns3::Ipv6OptionPad1Header, ns3::WifiPhy, ns3::WifiRadioEnergyModel, ns3::Ipv6OptionPadn, ns3::FriisPropagationLossModel, ns3::UanMacRc, ns3::Icmpv4TimeExceeded, ns3::MgtProbeResponseHeader, ns3::RateErrorModel, ns3::TcpHeader, ns3::TopologyReader, ns3::UanPhyCalcSinrFhFsk, ns3::Ipv6ExtensionHopByHop, ns3::FlowMonitor, ns3::UanTransducer, ns3::Icmpv6Header, ns3::aodv::RreqHeader, ns3::MgtProbeRequestHeader, ns3::UanHeaderRcRts, ns3::TapBridge, ns3::CtrlBAckResponseHeader, ns3::Ipv6OptionPad1, ns3::EthernetHeader, ns3::Icmpv4DestinationUnreachable, ns3::UanPhyPer, ns3::olsr::PacketHeader, ns3::UanPhyCalcSinrDefault, ns3::WifiMacHeader, ns3::RttMeanDeviation, ns3::DistributedSimulatorImpl, ns3::RandomPropagationLossModel, ns3::EthernetTrailer, ns3::MinstrelWifiManager, ns3::HalfDuplexIdealPhy, ns3::OnOffApplication, ns3::RedQueue, ns3::OpenFlowSwitchNetDevice, ns3::MultiModelSpectrumChannel, ns3::WaypointMobilityModel, ns3::UdpHeader, ns3::AthstatsWifiTraceSink, ns3::JakesPropagationLossModel, ns3::MgtAssocResponseHeader, ns3::WifiRemoteStationManager, ns3::flame::FlameProtocol, ns3::GaussMarkovMobilityModel, ns3::EdcaTxopN, ns3::Ipv6, ns3::WimaxNetDevice, ns3::PacketSocket, ns3::olsr::RoutingProtocol, ns3::ConstantSpeedPropagationDelayModel, ns3::Ipv4L3Protocol, ns3::GridPositionAllocator, ns3::CsmaChannel, ns3::Ipv4, ns3::NetDevice, ns3::UanPhyDual, ns3::Icmpv4Echo, ns3::UplinkSchedulerMBQoS, ns3::LiIonEnergySource, ns3::ErrorModel, ns3::EnergySource, ns3::Ipv4GlobalRouting, ns3::Ipv4StaticRouting, ns3::PacketSink, ns3::Ipv6RawSocketImpl, ns3::DcaTxop, ns3::Ipv6RawSocketFactory, ns3::dot11s::PeerLinkFrameStart, ns3::ManagementMessageType, ns3::BridgeNetDevice, ns3::flame::FlameTag, ns3::flame::FlameRtable, ns3::AlohaNoackNetDevice, ns3::VirtualNetDevice, ns3::Object, ns3::UanMacRcGw, ns3::YansWifiPhy, ns3::Ipv6L3Protocol, ns3::TcpSocket, ns3::dot11s::HwmpRtable, ns3::UanPhyPerUmodem, ns3::BSSchedulerRtps, ns3::SubscriberStationNetDevice, ns3::Ipv6PacketInfoTag, ns3::Application, ns3::QosTag, ns3::WimaxPhy, ns3::dsdv::DsdvHeader, ns3::Ipv4PacketInfoTag, ns3::Ipv6Header, ns3::Ipv6StaticRouting, ns3::LteSpectrumPhy, ns3::dot11s::HwmpTag, ns3::BaseStationNetDevice, ns3::CsmaNetDevice, ns3::TcpSocketBase, ns3::PppHeader, ns3::aodv::TypeHeader, ns3::PointToPointNetDevice, ns3::RandomPropagationDelayModel, ns3::AcousticModemEnergyModel, ns3::HierarchicalMobilityModel, ns3::UanNetDevice, ns3::UplinkSchedulerRtps, ns3::ListPositionAllocator, ns3::Ipv4NixVectorRouting, ns3::Node, ns3::YansErrorRateModel, ns3::MeshWifiInterfaceMac, ns3::NonCommunicatingNetDevice, ns3::BandwidthManager, ns3::Scheduler, ns3::dsdv::RoutingProtocol, ns3::ArpCache, ns3::Ipv6Interface, ns3::Ipv6L4Protocol, ns3::Ipv6OptionHeader, ns3::Ipv6RoutingProtocol, ns3::NscTcpSocketImpl, ns3::PacketScheduler, ns3::UanChannel, ns3::aodv::RoutingProtocol, ns3::EmuNetDevice, ns3::NdiscCache, ns3::RttEstimator, ns3::TcpL4Protocol, ns3::LtePhy, ns3::SteadyStateRandomWaypointMobilityModel, ns3::WifiMacQueue, ns3::BulkSendApplication, ns3::Ipv4L4Protocol, ns3::Ipv6Extension, ns3::Ipv6ListRouting, ns3::LteNetDevice, ns3::Cost231PropagationLossModel, ns3::WaveformGenerator, ns3::WifiNetDevice, ns3::SimpleOfdmWimaxPhy, ns3::MacHeaderType, ns3::Radvd, ns3::SeqTsHeader, ns3::DeviceEnergyModel, ns3::RvBatteryModel, ns3::Ipv4RoutingProtocol, ns3::SimplePacketScheduler, ns3::dot11s::PeerManagementProtocol, ns3::MeshPointDevice, ns3::UanHeaderRcData, ns3::MgtAssocRequestHeader, ns3::RegularWifiMac, ns3::Ping6, ns3::ArpHeader, ns3::Ipv4Interface, ns3::Ipv6Option, ns3::UdpSocketImpl, ns3::EnbNetDevice, ns3::RadiotapHeader, ns3::PropagationLossModel, ns3::SpectrumAnalyzer, ns3::YansWifiChannel, ns3::ArpL3Protocol, ns3::Icmpv6L4Protocol, ns3::ShadowingLossModel, ns3::UeNetDevice, ns3::SocketFactory, ns3::UanNoiseModelDefault, ns3::CtrlBAckRequestHeader, ns3::CalendarScheduler, ns3::HeapScheduler, ns3::EnergySourceContainer, ns3::Icmpv4Header, ns3::ChannelRealization, ns3::EnbLtePhy, ns3::UeLtePhy, ns3::PointToPointChannel, ns3::SpectrumChannel, ns3::SpectrumPhy, ns3::SpectrumPropagationLossModel, ns3::InetTopologyReader, ns3::UanHeaderCommon, ns3::UanMac, ns3::WifiInformationElementVector, ns3::BSSchedulerSimple, ns3::BSScheduler, ns3::ServiceFlowManager, ns3::NscTcpL4Protocol, ns3::TcpSocketFactory, ns3::UdpSocket, ns3::dot11s::HwmpProtocol, ns3::RandomWalk2dMobilityModel, ns3::UanMacCw, ns3::UplinkScheduler, ns3::UdpServer, ns3::Ipv4ListRouting, ns3::dot11s::PeerLink, ns3::MeshL2RoutingProtocol, ns3::RandomWaypointMobilityModel, ns3::LlcSnapHeader, ns3::Queue, ns3::SimpleNetDevice, ns3::UanPhyCalcSinrDual, ns3::IdealWifiManager, ns3::UdpClient, ns3::Synchronizer, ns3::LtePropagationLossModel, ns3::flame::FlameHeader, ns3::RandomDirection2dMobilityModel, ns3::OrbisTopologyReader, ns3::UanMacAloha, ns3::UanPhyCalcSinr, ns3::VisualSimulatorImpl, ns3::WifiMac, ns3::UplinkSchedulerSimple, ns3::ConnectionManager, ns3::UdpEchoServer, ns3::ConfigStore, ns3::Ns2CalendarScheduler, ns3::Ipv6ExtensionHeader, ns3::JakesFadingLossModel, ns3::Channel, ns3::SingleModelSpectrumChannel, ns3::RocketfuelTopologyReader, ns3::UanPhyPerGenDefault, ns3::StaWifiMac, ns3::WifiMacTrailer, ns3::Ipv6ExtensionDemux, ns3::Ipv6OptionDemux, ns3::TcpTahoe, ns3::UdpL4Protocol, ns3::DiscreteTimeLossModel, ns3::dot11s::AirtimeLinkMetricCalculator, ns3::MpiReceiver, ns3::Header, ns3::ArfWifiManager, ns3::MsduAggregator, ns3::WifiChannel, ns3::EnbLteSpectrumPhy, ns3::PathLossModel, ns3::UeLteSpectrumPhy, ns3::FriisSpectrumPropagationLossModel, ns3::OnoeWifiManager, ns3::SSLinkManager, ns3::SSScheduler, ns3::WimaxConnection, ns3::ListScheduler, ns3::TcpRxBuffer, ns3::TcpTxBuffer, ns3::UdpSocketFactory, ns3::RrcEntity, ns3::Trailer, ns3::UdpEchoClient, ns3::TcpRfc793, ns3::AmcModule, ns3::EnbMacEntity, ns3::MacEntity, ns3::PenetrationLossModel, ns3::RadioBearerInstance, ns3::RlcEntity, ns3::dot11s::MeshHeader, ns3::MobilityModel, ns3::PcapFileWrapper, ns3::AmrrWifiManager, ns3::ApWifiMac, ns3::RraaWifiManager, ns3::WimaxChannel, ns3::WimaxMacToMacHeader, ns3::MapScheduler, ns3::LoopbackNetDevice, ns3::TcpReno, ns3::LteMacQueue, ns3::UeMacEntity, ns3::UanPropModelIdeal, ns3::AarfcdWifiManager, ns3::CaraWifiManager, ns3::NistErrorRateModel, ns3::BSLinkManager, ns3::RealtimeSimulatorImpl, ns3::BasicEnergySource, ns3::Ipv4RawSocketFactory, ns3::FlameStack, ns3::PropagationDelayModel, ns3::UanPropModelThorp, ns3::UanTransducerHd, ns3::BurstProfileManager, ns3::IpcsClassifier, ns3::SSManager, ns3::WimaxMacQueue, ns3::V4Ping, ns3::BridgeChannel, ns3::TcpNewReno, ns3::Tag, ns3::SimpleChannel, ns3::AarfWifiManager, ns3::AdhocWifiMac, ns3::AmsduSubframeHeader, ns3::ConstantRateWifiManager, ns3::SimulatorImpl, ns3::LteMacHeader, ns3::ConstantVelocityMobilityModel, ns3::PositionAllocator, ns3::PacketBurst, ns3::PacketSocketFactory, ns3::PointToPointRemoteChannel, ns3::AlohaNoackMacHeader, ns3::WifiPhyStateHelper, ns3::DefaultSimulatorImpl, ns3::Dot11sStack, ns3::DropTailQueue, ns3::ErrorRateModel, ns3::ConstantPositionMobilityModel, ns3::Dcf, ns3::MsduStandardAggregator, ns3::Ns3NscStack, ns3::ConstantAccelerationMobilityModel, ns3::UanNoiseModel, ns3::FlowIdTag, ns3::SimpleDeviceEnergyModel, ns3::Ipv4RawSocketImpl, ns3::Icmpv4L4Protocol, and ns3::Chunk.
Referenced by ConstructSelf().
void ns3::ObjectBase::NotifyConstructionCompleted | ( | void | ) | [protected, virtual] |
This method is invoked once all member attributes have been initialized. Subclasses can override this method to be notified of this event but if they do this, they must chain up to their parent's NotifyConstructionCompleted method.
Reimplemented in ns3::FlowMonitor, and ns3::VisualSimulatorImpl.
Referenced by ConstructSelf().
void ns3::ObjectBase::SetAttribute | ( | std::string | name, |
const AttributeValue & | value | ||
) |
name | the name of the attribute to set |
value | the name of the attribute to set |
Set a single attribute. This cannot fail: if the input is invalid, it will crash immediately.
References ns3::TypeId::ATTR_SET, GetInstanceTypeId(), ns3::AttributeAccessor::HasSetter(), and NS_FATAL_ERROR.
Referenced by ns3::cell_edited_callback(), ns3::aodv::RoutingProtocol::NotifyInterfaceUp(), ns3::dsdv::RoutingProtocol::NotifyInterfaceUp(), ns3::Config::MatchContainer::Set(), ns3::UanPhyDual::SetModesPhy1(), ns3::UanPhyDual::SetPerModelPhy1(), and ns3::UanPhyDual::SetSinrModelPhy1().
bool ns3::ObjectBase::SetAttributeFailSafe | ( | std::string | name, |
const AttributeValue & | value | ||
) |
name | the name of the attribute to set |
value | the name of the attribute to set |
References ns3::TypeId::ATTR_SET, GetInstanceTypeId(), and ns3::AttributeAccessor::HasSetter().
bool ns3::ObjectBase::TraceConnect | ( | std::string | name, |
std::string | context, | ||
const CallbackBase & | cb | ||
) |
name | the name of the targetted trace source |
context | the trace context associated to the callback |
cb | the callback to connect to the trace source. |
The targetted trace source should be registered with TypeId::AddTraceSource.
References GetInstanceTypeId(), and ns3::TypeId::LookupTraceSourceByName().
bool ns3::ObjectBase::TraceConnectWithoutContext | ( | std::string | name, |
const CallbackBase & | cb | ||
) |
name | the name of the targetted trace source |
cb | the callback to connect to the trace source. |
The targetted trace source should be registered with TypeId::AddTraceSource.
References GetInstanceTypeId(), and ns3::TypeId::LookupTraceSourceByName().
Referenced by ns3::Config::MatchContainer::ConnectWithoutContext(), ns3::aodv::RoutingProtocol::NotifyInterfaceUp(), ns3::HierarchicalMobilityModel::SetChild(), ns3::dot11s::PeerManagementProtocolMac::SetParent(), and ns3::HierarchicalMobilityModel::SetParent().
bool ns3::ObjectBase::TraceDisconnect | ( | std::string | name, |
std::string | context, | ||
const CallbackBase & | cb | ||
) |
name | the name of the targetted trace source |
context | the trace context associated to the callback |
cb | the callback to disconnect from the trace source. |
The targetted trace source should be registered with TypeId::AddTraceSource.
References GetInstanceTypeId(), and ns3::TypeId::LookupTraceSourceByName().
bool ns3::ObjectBase::TraceDisconnectWithoutContext | ( | std::string | name, |
const CallbackBase & | cb | ||
) |
name | the name of the targetted trace source |
cb | the callback to disconnect from the trace source. |
The targetted trace source should be registered with TypeId::AddTraceSource.
References GetInstanceTypeId(), and ns3::TypeId::LookupTraceSourceByName().
Referenced by ns3::Config::MatchContainer::DisconnectWithoutContext(), ns3::aodv::RoutingProtocol::NotifyInterfaceDown(), ns3::HierarchicalMobilityModel::SetChild(), and ns3::HierarchicalMobilityModel::SetParent().