A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::Object Class Reference

a base class which provides memory management and object aggregation More...

#include <object.h>

Inherits ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >.

Inherited by A, A, AlternateTestObject, anonymous_namespace{object-test-suite.cc}::BaseA, anonymous_namespace{object-test-suite.cc}::BaseB, ns3::AntennaModel, ns3::Application, ns3::ArpCache, ns3::ArpL3Protocol, ns3::AthstatsWifiTraceSink, ns3::AttributeObjectTest, ns3::BandwidthManager, ns3::BSLinkManager, ns3::BSScheduler, ns3::Building, ns3::BuildingListPriv, ns3::BurstProfileManager, ns3::Channel, ns3::ChannelListPriv, ns3::ConfigTestObject, ns3::ConnectionManager, ns3::DataCalculator, ns3::DataCollector, ns3::DataOutputInterface, ns3::Dcf, ns3::Derived, ns3::DeviceEnergyModel, ns3::dot11s::AirtimeLinkMetricCalculator, ns3::dot11s::HwmpRtable, ns3::dot11s::PeerLink, ns3::dot11s::PeerManagementProtocol, ns3::dsr::DsrNetworkQueue, ns3::dsr::DsrOptions, ns3::dsr::GraReply, ns3::dsr::RouteCache, ns3::dsr::RreqTable, ns3::EnergySource, ns3::EnergySourceContainer, ns3::EpcHelper, ns3::ErrorModel, ns3::ErrorRateModel, ns3::FfMacScheduler, ns3::flame::FlameRtable, ns3::FlowMonitor, ns3::GlobalRouter, ns3::GridBuildingAllocator, ns3::IpcsClassifier, ns3::IpL4Protocol, ns3::Ipv4, ns3::Ipv4Interface, ns3::Ipv4RoutingProtocol, ns3::Ipv6, ns3::Ipv6AutoconfiguredPrefix, ns3::Ipv6Extension, ns3::Ipv6ExtensionDemux, ns3::Ipv6ExtensionRoutingDemux, ns3::Ipv6Interface, ns3::Ipv6Option, ns3::Ipv6OptionDemux, ns3::Ipv6RoutingProtocol, ns3::JakesProcess, ns3::LteAmc, ns3::LteEnbMac, ns3::LteEnbRrc, ns3::LteHelper, ns3::LteHexGridEnbTopologyHelper, ns3::LteInterference, ns3::LtePdcp, ns3::LtePhy, ns3::LteRadioBearerInfo, ns3::LteRlc, ns3::LteSimpleHelper, ns3::LteStatsCalculator, ns3::LteTestMac, ns3::LteTestPdcp, ns3::LteTestRrc, ns3::LteUeMac, ns3::LteUeRrc, ns3::MacLow, ns3::MeshL2RoutingProtocol, ns3::MeshStack, ns3::MobilityModel, ns3::MpiReceiver, ns3::MsduAggregator, ns3::NdiscCache, ns3::NetDevice, ns3::Node, ns3::NodeListPriv, ns3::Ns3NscStack, ns3::ofi::Controller, ns3::PacketBurst, ns3::PcapFileWrapper, ns3::PositionAllocator, ns3::PriorityUlJob, ns3::PropagationDelayModel, ns3::PropagationLossModel, ns3::Queue, ns3::RadioEnvironmentMapHelper, ns3::RandomVariableStream, ns3::RttEstimator, ns3::Scheduler, ns3::SequenceNumberTestObj, ns3::ServiceFlowManager, ns3::SimulatorImpl, ns3::Socket, ns3::SocketFactory, ns3::SpectrumErrorModel, ns3::SpectrumInterference, ns3::SpectrumPhy, ns3::SpectrumPropagationLossModel, ns3::SSLinkManager, ns3::SSManager, ns3::SSScheduler, ns3::Synchronizer, ns3::TcpRxBuffer, ns3::TcpTxBuffer, ns3::TopologyReader, ns3::UanMac, ns3::UanNoiseModel, ns3::UanPhy, ns3::UanPhyCalcSinr, ns3::UanPhyPer, ns3::UanPropModel, ns3::UanTransducer, ns3::UeInfo, ns3::UlJob, ns3::UplinkScheduler, ns3::WifiMac, ns3::WifiMacQueue, ns3::WifiPhy, ns3::WifiPhyStateHelper, ns3::WifiRemoteStationManager, ns3::WimaxConnection, ns3::WimaxMacQueue, ns3::WimaxPhy, and TestObject.

+ Collaboration diagram for ns3::Object:

Classes

class  AggregateIterator
 Iterate over the objects aggregated to an ns3::Object. More...
struct  Aggregates

Public Member Functions

 Object ()
virtual ~Object ()
void AggregateObject (Ptr< Object > other)
void Dispose (void)
AggregateIterator GetAggregateIterator (void) const
virtual TypeId GetInstanceTypeId (void) const
template<typename T >
Ptr< T > GetObject (void) const
template<typename T >
Ptr< T > GetObject (TypeId tid) const
void Start (void)
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 SimpleRefCount (const SimpleRefCount &o)
uint32_t GetReferenceCount (void) const
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
void GetAttribute (std::string name, AttributeValue &value) const
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
void SetAttribute (std::string name, const AttributeValue &value)
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
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::Object.
- Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
static void Cleanup (void)

Protected Member Functions

 Object (const Object &o)
virtual void DoDispose (void)
virtual void DoStart (void)
virtual void NotifyNewAggregate (void)

Private Member Functions

bool Check (void) const
bool CheckLoose (void) const
void Construct (const AttributeConstructionList &attributes)
void DoDelete (void)
Ptr< ObjectDoGetObject (TypeId tid) const
void SetTypeId (TypeId tid)
void UpdateSortedArray (struct Aggregates *aggregates, uint32_t i) const

Private Attributes

struct Aggregatesm_aggregates
bool m_disposed
uint32_t m_getObjectCount
bool m_started
TypeId m_tid

Friends

class AggregateIterator
template<typename T >
Ptr< T > CompleteConstruct (T *object)
template<typename T >
Ptr< T > CopyObject (Ptr< T > object)
template<typename T >
Ptr< T > CopyObject (Ptr< const T > object)
struct ObjectDeleter
class ObjectFactory

Detailed Description

a base class which provides memory management and object aggregation

The memory management scheme is based on reference-counting with dispose-like functionality to break the reference cycles. The reference count is increamented and decremented with the methods Object::Ref and Object::Unref. If a reference cycle is present, the user is responsible for breaking it by calling Object::Dispose in a single location. This will eventually trigger the invocation of Object::DoDispose on itself and all its aggregates. The Object::DoDispose method is always automatically invoked from the Object::Unref method before destroying the object, even if the user did not call Object::Dispose directly.

Definition at line 63 of file object.h.

Constructor & Destructor Documentation

ns3::Object::Object ( )
ns3::Object::~Object ( )
virtual
ns3::Object::Object ( const Object o)
protected
Parameters
othe object to copy.

Allow subclasses to implement a copy constructor. While it is technically possible to implement a copy constructor in a subclass, we strongly discourage you to do so. If you really want to do it anyway, you have to understand that this copy constructor will not copy aggregated objects. i.e., if your object instance is already aggregated to another object and if you invoke this copy constructor, the new object instance will be a pristine standalone object instance not aggregated to any other object. It is thus your responsability as a caller of this method to do what needs to be done (if it is needed) to ensure that the object stays in a valid state.

Definition at line 117 of file object.cc.

References ns3::Object::Aggregates::buffer, m_aggregates, and ns3::Object::Aggregates::n.

Member Function Documentation

void ns3::Object::AggregateObject ( Ptr< Object other)
Parameters
otheranother object pointer

This method aggregates the two objects together: after this method returns, it becomes possible to call GetObject on one to get the other, and vice-versa.

This method calls the virtual method NotifyNewAggregates to notify all aggregated objects that they have been aggregated together.

See Also
NotifyNewAggregate

Definition at line 227 of file object.cc.

References ns3::Object::Aggregates::buffer, CheckLoose(), DoGetObject(), GetInstanceTypeId(), ns3::TypeId::GetName(), m_aggregates, m_disposed, ns3::Object::Aggregates::n, NotifyNewAggregate(), NS_ASSERT, NS_FATAL_ERROR, ns3::PeekPointer(), and UpdateSortedArray().

Referenced by ns3::AddInternetStack(), ns3::AddInternetStack6(), ns3::PointToPointStarHelper::BoundingBox(), ns3::PointToPointGridHelper::BoundingBox(), ns3::PointToPointDumbbellHelper::BoundingBox(), ns3::AodvHelper::Create(), ns3::Ipv4GlobalRoutingHelper::Create(), ns3::DsdvHelper::Create(), ns3::Ipv4NixVectorHelper::Create(), ns3::DsrHelper::Create(), ns3::OlsrHelper::Create(), ns3::InternetStackHelper::CreateAndAggregateObjectFromTypeId(), ns3::CreateDualStackNode(), ns3::TcpTestCase::CreateInternetNode(), ns3::TcpTestCase::CreateInternetNode6(), ns3::WifiTest::CreateOne(), ns3::InterferenceHelperSequenceTest::CreateOne(), ns3::LiIonEnergyTestCase::DoRun(), ns3::aodv::LoopbackTestCase::DoRun(), WaypointLazyNotifyFalse::DoRun(), ns3::AcousticModemEnergyTestCase::DoRun(), ns3::Ipv6L3ProtocolTestCase::DoRun(), WaypointLazyNotifyTrue::DoRun(), ns3::AcousticModemEnergyDepletionTestCase::DoRun(), ns3::PacketSocketHelper::Install(), ns3::dot11s::PeerManagementProtocol::Install(), ns3::dot11s::HwmpProtocol::Install(), ns3::flame::FlameProtocol::Install(), ns3::PointToPointHelper::Install(), ns3::InternetStackHelper::Install(), ns3::MobilityHelper::Install(), main(), ns3::Icmpv4L4Protocol::NotifyNewAggregate(), ns3::NscTcpL4Protocol::NotifyNewAggregate(), ns3::TcpL4Protocol::NotifyNewAggregate(), ns3::UdpL4Protocol::NotifyNewAggregate(), ns3::Ipv6L3Protocol::RegisterExtensions(), ns3::Ipv6L3Protocol::RegisterOptions(), NetAnimExperiment::Run(), Experiment::Run(), ns3::AnimationInterface::SetConstantPosition(), ns3::NscTcpL4Protocol::SetNode(), and BasicEnergyUpdateTest::StateSwitchTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ns3::Object::Check ( void  ) const
private

Definition at line 329 of file object.cc.

References ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >::GetReferenceCount().

Referenced by SetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ns3::Object::CheckLoose ( void  ) const
private

Definition at line 342 of file object.cc.

References ns3::Object::Aggregates::buffer, ns3::SimpleRefCount< T, PARENT, DELETER >::GetReferenceCount(), m_aggregates, and ns3::Object::Aggregates::n.

Referenced by AggregateObject(), and DoGetObject().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::Object::Construct ( const AttributeConstructionList attributes)
private
Parameters
attributesthe attribute values used to initialize the member variables of this object's instance.

Invoked from ns3::ObjectFactory::Create and ns3::CreateObject only. Initialize all the member variables which were registered with the associated TypeId.

Definition at line 128 of file object.cc.

References ns3::ObjectBase::ConstructSelf().

Referenced by ns3::ObjectFactory::Create().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::Object::Dispose ( void  )

Run the DoDispose methods of this object and all the objects aggregated to it. After calling this method, the object is expected to be totally unusable except for the Ref and Unref methods.

Note that you can call Dispose many times on the same object or different objects aggregated together, and DoDispose will be called only once for each aggregated object.

This method is typically used to break reference cycles.

Note: the code here is a bit tricky because we need to protect ourselves from modifications in the aggregate array while DoDispose is called. The user's DoDispose implementation could call GetObject (which could reorder the array) and it could call AggregateObject which would add an object at the end of the array. So, to be safe, we restart the iteration over the array whenever we call some user code.

Reimplemented in anonymous_namespace{object-test-suite.cc}::DerivedB, anonymous_namespace{object-test-suite.cc}::BaseB, anonymous_namespace{object-test-suite.cc}::DerivedA, AlternateTestObject, anonymous_namespace{object-test-suite.cc}::BaseA, and TestObject.

Definition at line 191 of file object.cc.

References ns3::Object::Aggregates::buffer, DoDispose(), m_aggregates, m_disposed, and ns3::Object::Aggregates::n.

Referenced by ns3::LteSimpleHelper::DoDispose(), ns3::NodeListPriv::DoDispose(), ns3::ChannelListPriv::DoDispose(), ns3::BuildingListPriv::DoDispose(), ns3::LteEnbNetDevice::DoDispose(), ns3::EpcHelper::DoDispose(), ns3::LteUeNetDevice::DoDispose(), ns3::VisualSimulatorImpl::DoDispose(), ns3::ArpL3Protocol::DoDispose(), ns3::LteSpectrumPhy::DoDispose(), ns3::WifiNetDevice::DoDispose(), ns3::LtePhy::DoDispose(), ns3::Node::DoDispose(), ns3::RegularWifiMac::DoDispose(), ns3::WimaxNetDevice::DoDispose(), ns3::Icmpv6L4Protocol::DoDispose(), ns3::Ipv4RawSocketImplTest::DoRun(), ns3::UdpSocketImplTest::DoRun(), and ns3::Udp6SocketImplTest::DoRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::Object::DoDelete ( void  )
private

Attempt to delete this object. This method iterates over all aggregated objects to check if they all have a zero refcount. If yes, the object and all its aggregates are deleted. If not, nothing is done.

Definition at line 354 of file object.cc.

References ns3::Object::Aggregates::buffer, DoDispose(), ns3::SimpleRefCount< T, PARENT, DELETER >::GetReferenceCount(), m_aggregates, m_disposed, and ns3::Object::Aggregates::n.

+ Here is the call graph for this function:

void ns3::Object::DoDispose ( void  )
protectedvirtual

This method is called by Object::Dispose or by the object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.

It is safe to call GetObject from within this method.

Reimplemented in ns3::Socket, ns3::Ipv6ExtensionRoutingDemux, ns3::dsr::DsrRouting, ns3::Icmpv6L4Protocol, ns3::Ipv4StaticRouting, ns3::Ipv6L3Protocol, ns3::CsmaNetDevice, ns3::WimaxPhy, ns3::Ipv6ExtensionFragment, ns3::WifiRemoteStationManager, ns3::UanPhyDual, ns3::UanPhyGen, ns3::UanPropModel, ns3::Ipv6StaticRouting, ns3::Ipv6Interface, ns3::OpenFlowSwitchNetDevice, ns3::UanMacRc, ns3::Ipv4GlobalRouting, ns3::WimaxNetDevice, ns3::TapBridge, ns3::CounterCalculator< T >, ns3::CounterCalculator< uint32_t >, ns3::RegularWifiMac, ns3::Ipv4L3Protocol, ns3::Node, ns3::LteTestMac, ns3::UanMacRcGw, ns3::Ipv4Interface, ns3::LtePhy, ns3::UanNetDevice, ns3::VirtualNetDevice, ns3::UdpL4Protocol, ns3::UanMacCw, ns3::TcpL4Protocol, ns3::UdpEchoClient, ns3::LteTestPdcp, ns3::Application, ns3::OnOffApplication, ns3::BridgeNetDevice, ns3::Ipv6ListRouting, ns3::UanPhyPer, ns3::MeshPointDevice, ns3::LteEnbRrc, ns3::DataCalculator, ns3::UanChannel, ns3::UdpTraceClient, ns3::MultiModelSpectrumChannel, ns3::SpectrumInterference, ns3::NscTcpL4Protocol, ns3::LteSpectrumPhy, ns3::SpectrumAnalyzer, ns3::Ping6, ns3::ErrorNetDevice, ns3::SimpleNetDevice, ns3::PacketSink, ns3::Ipv4ListRouting, ns3::Radvd, ns3::UanMacAloha, ns3::Ipv6ExtensionDemux, ns3::Ipv6OptionDemux, ns3::flame::FlameProtocol, ns3::EdcaTxopN, ns3::LteRadioBearerTagUdpClient, ns3::ArpL3Protocol, ns3::BulkSendApplication, ns3::SpectrumPropagationLossModel, ns3::RadioBearerStatsCalculator, ns3::PfFfMacScheduler, ns3::UdpServer, ns3::VisualSimulatorImpl, ns3::DataCollector, ns3::LoopbackNetDevice, ns3::UdpSocketFactoryImpl, ns3::UanPhyCalcSinr, ns3::LteUePhy, ns3::flame::FlameRtable, ns3::LteUeRrc, ns3::dot11s::HwmpRtable, ns3::UanTransducerHd, ns3::PacketSizeMinMaxAvgTotalCalculator, ns3::dsdv::RoutingProtocol, ns3::RrFfMacScheduler, ns3::LteUeNetDevice, ns3::UdpClient, ns3::LteEnbPhy, ns3::aodv::RoutingProtocol, ns3::EpcHelper, ns3::SSScheduler, ns3::LteEnbMac, ns3::JakesProcess, ns3::ShannonSpectrumErrorModel, ns3::BandwidthManager, ns3::RemSpectrumPhy, ns3::LteHelper, ns3::LteEnbNetDevice, ns3::MinMaxAvgTotalCalculator< T >, ns3::MinMaxAvgTotalCalculator< uint32_t >, ns3::MinMaxAvgTotalCalculator< double >, ns3::MinMaxAvgTotalCalculator< uint64_t >, ns3::FlameStack, ns3::LteNetDevice, ns3::SsServiceFlowManager, ns3::NscTcpSocketFactoryImpl, ns3::dot11s::PeerManagementProtocol, ns3::TcpSocketFactoryImpl, ns3::FfMacScheduler, ns3::LteInterference, ns3::LteTestRrc, ns3::ServiceFlowManager, ns3::EpcSgwPgwApplication, ns3::Dot11sStack, ns3::dot11s::HwmpProtocol, ns3::BsServiceFlowManager, ns3::dot11s::PeerLink, ns3::TimeMinMaxAvgTotalCalculator, ns3::UdpEchoServer, ns3::RadioEnvironmentMapHelper, ns3::LteSimpleHelper, ns3::ConnectionManager, ns3::LteUeMac, ns3::DataOutputInterface, ns3::LteSimpleNetDevice, ns3::SqliteDataOutput, ns3::SSLinkManager, ns3::LteTestUePhy, ns3::OmnetDataOutput, ns3::PacketCounterCalculator, ns3::UanNoiseModel, ns3::Building, ns3::LteHexGridEnbTopologyHelper, and ns3::BurstProfileManager.

Definition at line 317 of file object.cc.

References m_disposed, and NS_ASSERT.

Referenced by Dispose(), and DoDelete().

+ Here is the caller graph for this function:

Ptr< Object > ns3::Object::DoGetObject ( TypeId  tid) const
private

Definition at line 134 of file object.cc.

References ns3::Object::Aggregates::buffer, CheckLoose(), GetInstanceTypeId(), ns3::TypeId::GetParent(), GetTypeId(), m_aggregates, m_getObjectCount, ns3::Object::Aggregates::n, NS_ASSERT, and UpdateSortedArray().

Referenced by AggregateObject(), and GetObject().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::Object::DoStart ( void  )
protectedvirtual

This method is called only once by Object::Start. If the user calls Object::Start multiple times, DoStart is called only the first time.

Subclasses are expected to override this method and chain up to their parent's implementation once they are done. It is safe to call GetObject and AggregateObject from within this method.

Reimplemented in ns3::LteHelper, ns3::RegularWifiMac, ns3::Node, ns3::olsr::RoutingProtocol, ns3::LteEnbNetDevice, ns3::Application, ns3::LteSimpleHelper, ns3::Ipv4ListRouting, ns3::LteUeNetDevice, ns3::LteUePhy, ns3::LteEnbPhy, ns3::SteadyStateRandomWaypointMobilityModel, ns3::LteSimpleNetDevice, ns3::RandomWaypointMobilityModel, and ns3::TraceFadingLossModel.

Definition at line 323 of file object.cc.

References m_started, and NS_ASSERT.

Referenced by Start().

+ Here is the caller graph for this function:

Object::AggregateIterator ns3::Object::GetAggregateIterator ( void  ) const
Returns
an iterator to the first object aggregated to this object.

If no objects are aggregated to this object, then, the returned iterator will be empty and AggregateIterator::HasNext will always return false.

Definition at line 304 of file object.cc.

References AggregateIterator.

template<typename T >
Ptr< T > ns3::Object::GetObject ( void  ) const
inline
Returns
a pointer to the requested interface or zero if it could not be found.

Definition at line 332 of file object.h.

References ns3::Object::Aggregates::buffer, DoGetObject(), m_aggregates, and ns3::PeekPointer().

Referenced by ns3::EpcHelper::ActivateEpsBearer(), ns3::LteHelper::ActivateEpsBearer(), ns3::Ipv6Interface::AddAddress(), ns3::EpcHelper::AddEnb(), ns3::MeshPointDevice::AddInterface(), ns3::NscTcpL4Protocol::AddInterface(), ns3::Ipv6StaticRoutingHelper::AddMulticastRoute(), ns3::Ipv4StaticRoutingHelper::AddMulticastRoute(), ns3::BsServiceFlowManager::AddMulticastServiceFlow(), ns3::TcpTestCase::AddSimpleNetDevice(), ns3::AddSimpleNetDevice(), ns3::TcpTestCase::AddSimpleNetDevice6(), ns3::GlobalRouter::AnotherRouterOnLink(), ns3::Ipv6AddressHelper::Assign(), ns3::Ipv4AddressHelper::Assign(), ns3::AodvHelper::AssignStreams(), ns3::OlsrHelper::AssignStreams(), ns3::InternetStackHelper::AssignStreams(), ns3::MobilityHelper::AssignStreams(), ns3::UanMacRc::Associate(), ns3::UanMacRc::AssociateTimeout(), ns3::LteHelper::Attach(), ns3::LteHelper::AttachToClosestEnb(), ns3::Ipv4NixVectorRouting::BFS(), ns3::PointToPointStarHelper::BoundingBox(), ns3::PointToPointGridHelper::BoundingBox(), ns3::PointToPointDumbbellHelper::BoundingBox(), ns3::GlobalRouteManagerImpl::BuildGlobalRoutingDatabase(), ns3::GlobalRouter::BuildNetworkLSAs(), ns3::BandwidthManager::CalculateAllocationSize(), ns3::GlobalRouteManagerImpl::CheckForStubNode(), ns3::Ns2MobilityHelperTest::CheckInitialPositions(), ns3::Ipv4RawSocketImpl::Close(), ns3::Ipv6RawSocketImpl::Close(), ns3::Ns2MobilityHelperTest::CourseChange(), ns3::WaypointMobilityModelNotifyTest::CourseChangeCallback(), ns3::MobilityHelper::CourseChanged(), ns3::DsrHelper::Create(), ns3::SpectrumPhyHelper::Create(), ns3::ArpL3Protocol::CreateCache(), ns3::Socket::CreateSocket(), ns3::TapBridge::CreateTap(), ns3::GlobalRouteManagerImpl::DeleteGlobalRoutes(), ns3::GlobalRouter::DiscoverLSAs(), ns3::SimpleOfdmWimaxChannel::DoAttach(), ns3::Icmpv6L4Protocol::DoDAD(), ns3::dsr::DsrRouting::DoDispose(), ns3::RvBatteryModelHelper::DoInstall(), ns3::BasicEnergySourceHelper::DoInstall(), ns3::WifiRadioEnergyModelHelper::DoInstall(), ns3::Resolver::DoResolve(), ns3::LteEnbRrc::DoRrcConfigurationUpdateInd(), IpAddressHelperTestCasev6::DoRun(), ns3::LenaMimoTestCase::DoRun(), ns3::SteadyStateRandomWaypointTest::DoRun(), ns3::LenaPhyErrorModelTestCase::DoRun(), ns3::LenaRrFfMacSchedulerTestCase::DoRun(), ns3::LenaPfFfMacSchedulerTestCase1::DoRun(), ns3::WaypointMobilityModelNotifyTest::DoRun(), StaticRoutingSlash32TestCase::DoRun(), ns3::LteLinkAdaptationTestCase::DoRun(), ns3::AcousticModemEnergyTestCase::DoRun(), ns3::LteEnbAntennaTestCase::DoRun(), ns3::LteInterferenceTestCase::DoRun(), Ns3WimaxSfCreationTestCase::DoRun(), Ns3WimaxNetworkEntryTestCase::DoRun(), ns3::LtePathlossModelSystemTestCase::DoRun(), DynamicGlobalRoutingTestCase::DoRun(), ns3::LenaPfFfMacSchedulerTestCase2::DoRun(), ns3::RandomRoomPositionAllocatorTestCase::DoRun(), ns3::Ipv6PacketInfoTagTest::DoRun(), ns3::Ipv4PacketInfoTagTest::DoRun(), ns3::EpcS1uDlTestCase::DoRun(), ns3::Ipv4HeaderTest::DoRun(), ns3::SpectrumIdealPhyTestCase::DoRun(), ns3::Ipv4RawSocketImplTest::DoRun(), ns3::LteEpcE2eDataTestCase::DoRun(), ns3::Ipv4FragmentationTest::DoRun(), ns3::BuildingsHelperOneTestCase::DoRun(), ns3::Ipv6FragmentationTest::DoRun(), ns3::UdpSocketLoopbackTest::DoRun(), Ns3WimaxManagementConnectionsTestCase::DoRun(), ns3::SameRoomPositionAllocatorTestCase::DoRun(), ns3::Udp6SocketLoopbackTest::DoRun(), ns3::InterferenceHelperSequenceTest::DoRun(), ns3::aodv::ChainRegressionTest::DoRun(), ns3::UdpSocketImplTest::DoRun(), ns3::AcousticModemEnergyDepletionTestCase::DoRun(), ns3::EpcS1uUlTestCase::DoRun(), GlobalRoutingSlash32TestCase::DoRun(), WaypointMobilityModelViaHelper::DoRun(), ns3::ObjectFactoryTestCase::DoRun(), ns3::Udp6SocketImplTest::DoRun(), CsmaStarTestCase::DoRun(), ns3::PointerAttributeTestCase::DoRun(), Ns3WimaxSchedulingTestCase::DoRunOnce(), Ns3WimaxSimpleOFDMTestCase::DoRunOnce(), Ns3WimaxSFTypeTestCase::DoRunOnce(), ns3::LteUePhy::DoSendIdealControlMessage(), ns3::UdpSocketImpl::DoSendTo(), ns3::Ipv4Interface::DoSetup(), ns3::Ipv6Interface::DoSetup(), ns3::LteHelper::DoStart(), ns3::EmuHelper::EnableAsciiInternal(), ns3::PointToPointHelper::EnableAsciiInternal(), ns3::CsmaHelper::EnableAsciiInternal(), ns3::YansWifiPhyHelper::EnableAsciiInternal(), ns3::WimaxHelper::EnableAsciiInternal(), ns3::AsciiTraceHelperForIpv4::EnableAsciiIpv4Impl(), ns3::InternetStackHelper::EnableAsciiIpv4Internal(), ns3::AsciiTraceHelperForIpv6::EnableAsciiIpv6Impl(), ns3::InternetStackHelper::EnableAsciiIpv6Internal(), ns3::EmuHelper::EnablePcapInternal(), ns3::PointToPointHelper::EnablePcapInternal(), ns3::CsmaHelper::EnablePcapInternal(), ns3::YansWifiPhyHelper::EnablePcapInternal(), ns3::WimaxHelper::EnablePcapInternal(), ns3::PcapHelperForIpv4::EnablePcapIpv4(), ns3::InternetStackHelper::EnablePcapIpv4Internal(), ns3::PcapHelperForIpv6::EnablePcapIpv6(), ns3::InternetStackHelper::EnablePcapIpv6Internal(), ns3::Names::Find(), ns3::FindCellIdFromEnbRlcPath(), ns3::GlobalRouter::FindDesignatedRouterForLink(), ns3::FindImsiFromEnbRlcPath(), ns3::FindImsiFromUeRlcPath(), ns3::GlobalRouter::FindInterfaceForDevice(), ns3::Ipv4NixVectorRouting::FindNetDeviceForNixIndex(), ns3::GlobalRouteManagerImpl::FindOutgoingInterfaceId(), ns3::Ipv4NixVectorRouting::FlushGlobalNixRoutingCache(), ns3::WaypointMobilityModelNotifyTest::ForceUpdates(), ns3::Icmpv4L4Protocol::Forward(), ns3::Icmpv6L4Protocol::Forward(), ns3::LteUePhy::GenerateCqiReport(), ns3::BurstProfileManager::GetBurstProfileToRequest(), ns3::PcapHelper::GetFilenameFromInterfacePair(), ns3::AsciiTraceHelper::GetFilenameFromInterfacePair(), ns3::Ipv6ExtensionFragment::GetFragments(), ns3::MeshWifiInterfaceMac::GetFrequencyChannel(), ns3::Ipv4L3Protocol::GetIcmp(), ns3::Ipv6L3Protocol::GetIcmpv6(), ns3::dsr::DsrRouting::GetIDfromIP(), ns3::dsr::DsrOptions::GetIDfromIP(), ns3::dsr::DsrRouting::GetIPfromID(), ns3::dsr::DsrRouting::GetIPfromMAC(), ns3::SameRoomPositionAllocator::GetNext(), ns3::Ipv4NixVectorRouting::GetNodeByIp(), ns3::dsr::DsrOptions::GetNodeWithAddress(), GetPosition(), ns3::BandwidthManager::GetSymbolsPerFrameAllocated(), ns3::EpcHelper::GetUeDefaultGatewayAddress(), ns3::AcousticModemEnergyModel::HandleEnergyDepletion(), ns3::Ipv4L3Protocol::HandleFragmentsTimeout(), ns3::Ipv6ExtensionFragment::HandleFragmentsTimeout(), ns3::Icmpv6L4Protocol::HandleNS(), ns3::Icmpv6L4Protocol::HandleRA(), ns3::Icmpv6L4Protocol::HandleRedirection(), ns3::Icmpv6L4Protocol::HandleRS(), ns3::GlobalRouteManagerImpl::InitializeRoutes(), ns3::FlowMonitorHelper::Install(), ns3::RadioEnvironmentMapHelper::Install(), ns3::CsmaHelper::Install(), ns3::WaveformGeneratorHelper::Install(), ns3::InternetStackHelper::Install(), ns3::AdhocAlohaNoackIdealPhyHelper::Install(), ns3::SpectrumAnalyzerHelper::Install(), ns3::WifiHelper::Install(), ns3::MobilityHelper::Install(), ns3::UanHelper::Install(), ns3::FlowMonitorHelper::InstallAll(), AodvExample::InstallApplications(), DsdvManetExample::InstallApplications(), ns3::LteHelper::InstallSingleEnbDevice(), ns3::LteHelper::InstallSingleUeDevice(), ns3::Ipv4L3Protocol::IpForward(), ns3::Ipv6L3Protocol::IpForward(), ns3::Ipv4L3Protocol::IpMulticastForward(), ns3::Ipv6L3Protocol::IpMulticastForward(), ns3::Ipv4FlowProbe::Ipv4FlowProbe(), ns3::UanMacRc::IsPhy1Ok(), ns3::Ipv6L3Protocol::LocalDeliver(), ns3::LteFadingTestSuite::LteFadingTestSuite(), main(), ns3::BuildingsHelper::MakeMobilityModelConsistent(), ns3::AnimationInterface::MobilityCourseChangeTrace(), ns3::Ipv4NixVectorRouting::NetDeviceIsBridged(), ns3::GlobalRouter::NetDeviceIsBridged(), ns3::aodv::RoutingProtocol::NotifyAddAddress(), ns3::dsdv::RoutingProtocol::NotifyAddAddress(), ns3::aodv::RoutingProtocol::NotifyInterfaceDown(), ns3::dsdv::RoutingProtocol::NotifyInterfaceDown(), ns3::aodv::RoutingProtocol::NotifyInterfaceUp(), ns3::dsdv::RoutingProtocol::NotifyInterfaceUp(), ns3::TcpL4Protocol::NotifyNewAggregate(), ns3::UdpL4Protocol::NotifyNewAggregate(), ns3::dsr::DsrRouting::NotifyNewAggregate(), ns3::aodv::RoutingProtocol::NotifyRemoveAddress(), ns3::dsdv::RoutingProtocol::NotifyRemoveAddress(), ns3::Ipv4RoutingHelper::Print(), ns3::Ipv6RoutingHelper::Print(), ns3::Ipv4RoutingHelper::PrintEvery(), ns3::Ipv6RoutingHelper::PrintEvery(), PrintGnuplottableEnbListToFile(), PrintGnuplottableUeListToFile(), ns3::dsdv::RoutingProtocol::PrintRoutingTable(), ns3::aodv::RoutingProtocol::PrintRoutingTable(), ns3::Ipv4ListRouting::PrintRoutingTable(), ns3::Ipv6ListRouting::PrintRoutingTable(), ns3::Ipv6StaticRouting::PrintRoutingTable(), ns3::dsr::DsrOptionRreq::Process(), ns3::dsr::DsrOptionRrep::Process(), ns3::Ipv6ExtensionRouting::Process(), ns3::dsr::DsrOptionSR::Process(), ns3::dsr::DsrOptionRerr::Process(), ns3::Ipv6ExtensionLooseRouting::Process(), ns3::dsr::DsrOptionAckReq::Process(), ns3::dsr::DsrOptionAck::Process(), ns3::BandwidthManager::ProcessBandwidthRequest(), ns3::GlobalRouter::ProcessBridgedBroadcastLink(), ns3::BsServiceFlowManager::ProcessDsaAck(), ns3::BsServiceFlowManager::ProcessDsaReq(), ns3::SsServiceFlowManager::ProcessDsaRsp(), ns3::Ipv6Extension::ProcessOptions(), ns3::GlobalRouter::ProcessPointToPointLink(), ns3::GlobalRouter::ProcessSingleBroadcastLink(), ns3::MobilityHelper::PushReferenceMobilityModel(), ns3::AnimationInterface::RecalcTopoBounds(), ns3::Ipv6L3Protocol::Receive(), ns3::Ipv4L3Protocol::Receive(), ns3::Icmpv6L4Protocol::Receive(), ns3::dsr::DsrRouting::Receive(), ns3::MpiInterface::ReceiveMessages(), ns3::Ipv6AutoconfiguredPrefix::RemoveMe(), ns3::Dot11sStack::Report(), ns3::FlameStack::Report(), ns3::MeshHelper::Report(), HwmpSimplestRegressionTest::ResetPosition(), HwmpReactiveRegressionTest::ResetPosition(), ns3::Dot11sStack::ResetStats(), ns3::FlameStack::ResetStats(), ns3::MeshHelper::ResetStats(), ns3::Ipv4ListRouting::RouteInput(), ns3::Ipv6ListRouting::RouteInput(), ns3::olsr::RoutingProtocol::RouteInput(), ns3::Ipv4L3Protocol::RouteInputError(), ns3::Ipv6L3Protocol::RouteInputError(), ns3::olsr::RoutingProtocol::RouteOutput(), ns3::UanMacRc::RtsTimeout(), Experiment::Run(), NetAnimExperiment::Run(), ns3::SameRoomPositionAllocator::SameRoomPositionAllocator(), ns3::SsServiceFlowManager::ScheduleDsaReq(), ns3::BsServiceFlowManager::ScheduleDsaRsp(), ns3::BandwidthManager::SelectFlowForRequest(), ns3::SimpleOfdmWimaxChannel::Send(), ns3::YansWifiChannel::Send(), ns3::TcpL4Protocol::Send(), ns3::Ping6::Send(), ns3::Radvd::Send(), ns3::Ipv4Interface::Send(), ns3::Ipv6L3Protocol::Send(), ns3::Ipv4L3Protocol::Send(), ns3::dsdv::RoutingProtocol::Send(), ns3::Ipv6Interface::Send(), ns3::NscTcpL4Protocol::send_callback(), ns3::ArpL3Protocol::SendArpRequest(), ns3::BandwidthManager::SendBandwidthRequest(), ns3::Icmpv4L4Protocol::SendMessage(), ns3::Icmpv6L4Protocol::SendMessage(), ns3::AcousticModemEnergyTestCase::SendOnePacket(), ns3::AcousticModemEnergyDepletionTestCase::SendOnePacket(), ns3::TcpL4Protocol::SendPacket(), ns3::Ipv4L3Protocol::SendRealOut(), ns3::Ipv6L3Protocol::SendRealOut(), ns3::UanMacRc::SendRts(), ns3::Ipv4RawSocketImpl::SendTo(), ns3::Ipv6RawSocketImpl::SendTo(), ns3::AnimationInterface::SetConstantPosition(), ns3::Ipv4StaticRoutingHelper::SetDefaultMulticastRoute(), ns3::UdpEchoClientHelper::SetFill(), SetPosition(), ns3::MobilityHelper::SetPositionAllocator(), ns3::LteHexGridEnbTopologyHelper::SetPositionAndInstallEnbDevice(), ns3::WimaxHelper::SetPropagationLossModel(), ns3::BandwidthManager::SetSubframeRatio(), ns3::TcpTestCase::SetupDefaultSim(), ns3::TcpTestCase::SetupDefaultSim6(), ns3::TcpSocketBase::SetupEndpoint(), ns3::TcpSocketBase::SetupEndpoint6(), DsdvManetExample::SetupMobility(), ns3::LteUeRrc::SetupRadioBearer(), ns3::LteEnbRrc::SetupRadioBearer(), ns3::DualStackTestCase::SetUpSim(), ns3::olsr::SetVelocity(), ns3::GlobalRouteManagerImpl::SPFAddASExternal(), ns3::GlobalRouteManagerImpl::SPFIntraAddRouter(), ns3::GlobalRouteManagerImpl::SPFIntraAddStub(), ns3::GlobalRouteManagerImpl::SPFIntraAddTransit(), ns3::dsr::DsrRouting::Start(), ns3::LteUePhy::SubframeIndication(), ns3::MeshWifiInterfaceMac::SwitchFrequencyChannel(), Tunnel::Tunnel(), ns3::UanChannel::TxPacket(), GlobalPathlossDatabase::UpdatePathloss(), DownlinkGlobalPathlossDatabase::UpdatePathloss(), UplinkGlobalPathlossDatabase::UpdatePathloss(), ns3::AnimationInterface::UpdatePosition(), Experiment::UpdatePositions(), and NetAnimExperiment::UpdatePositions().

+ Here is the call graph for this function:

template<typename T >
Ptr< T > ns3::Object::GetObject ( TypeId  tid) const
Parameters
tidthe interface id of the requested interface
Returns
a pointer to the requested interface or zero if it could not be found.

Definition at line 352 of file object.h.

References DoGetObject(), and ns3::PeekPointer().

+ Here is the call graph for this function:

TypeId ns3::Object::GetTypeId ( void  )
static

This method returns the TypeId associated to ns3::Object.

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::ObjectBase.

Reimplemented in ns3::EmpiricalRandomVariable, ns3::DeterministicRandomVariable, ns3::ZetaRandomVariable, ns3::ZipfRandomVariable, ns3::TriangularRandomVariable, ns3::ErlangRandomVariable, ns3::GammaRandomVariable, ns3::LogNormalRandomVariable, ns3::NormalRandomVariable, ns3::WeibullRandomVariable, ns3::Ipv6ExtensionAH, ns3::dsr::DsrOptionAck, ns3::ParetoRandomVariable, ns3::Ipv6ExtensionESP, ns3::RangePropagationLossModel, ns3::dsr::DsrOptionAckReq, ns3::GlobalRouter, ns3::Ipv6ExtensionLooseRouting, ns3::MatrixPropagationLossModel, ns3::FixedRssLossModel, ns3::dsr::DsrOptionRerr, ns3::Ipv6ExtensionRoutingDemux, ns3::NakagamiPropagationLossModel, ns3::ofi::LearningController, ns3::dsr::DsrOptionSR, ns3::ExponentialRandomVariable, ns3::Ipv6ExtensionRouting, ns3::ThreeLogDistancePropagationLossModel, ns3::dsr::DsrOptionRrep, ns3::LogDistancePropagationLossModel, ns3::ofi::Controller, ns3::dsr::DsrOptionRreq, ns3::SequentialRandomVariable, ns3::dsr::RouteCache, ns3::ReceiveListErrorModel, ns3::dsr::DsrOptionPadn, ns3::ConstantRandomVariable, ns3::UniformDiscPositionAllocator, ns3::TwoRayGroundPropagationLossModel, ns3::Ipv6ExtensionFragment, ns3::Ipv6OptionRouterAlert, ns3::ListErrorModel, ns3::dsr::DsrOptionPad1, ns3::RandomDiscPositionAllocator, ns3::UanPropModel, ns3::Ipv6ExtensionDestination, ns3::RandomBoxPositionAllocator, ns3::Ipv6OptionJumbogram, ns3::RandomRectanglePositionAllocator, ns3::FriisPropagationLossModel, ns3::UanPhyGen, ns3::LteTestMac, ns3::UanPhy, ns3::RateErrorModel, ns3::RttMeanDeviation, ns3::WifiPhy, ns3::Ipv6ExtensionHopByHop, ns3::UniformRandomVariable, ns3::WifiRadioEnergyModel, ns3::Ipv6OptionPadn, ns3::LteRlcSm, ns3::UanMacRc, ns3::UanPhyCalcSinrFhFsk, ns3::TopologyReader, ns3::FlowMonitor, ns3::SameRoomPositionAllocator, ns3::UanTransducer, ns3::RandomPropagationLossModel, ns3::LteTestPdcp, ns3::LteEnbRrc, ns3::ErrorModel, ns3::Ipv6OptionPad1, ns3::TapBridge, ns3::dsr::DsrRouting, ns3::UanPhyPer, ns3::UanPhyCalcSinrDefault, ns3::ConstantSpeedPropagationDelayModel, ns3::dsr::RreqTable, ns3::LteSpectrumPhy, ns3::DistributedSimulatorImpl, ns3::HalfDuplexIdealPhy, ns3::GridPositionAllocator, ns3::MinstrelWifiManager, ns3::OnOffApplication, ns3::OpenFlowSwitchNetDevice, ns3::MultiModelSpectrumChannel, ns3::WaypointMobilityModel, ns3::RedQueue, ns3::AthstatsWifiTraceSink, ns3::AttributeObjectTest, ns3::WifiRemoteStationManager, ns3::flame::FlameProtocol, ns3::GaussMarkovMobilityModel, ns3::EdcaTxopN, ns3::RandomRoomPositionAllocator, ns3::Ipv6, ns3::olsr::RoutingProtocol, ns3::WimaxNetDevice, ns3::dsr::DsrOptions, ns3::PacketSocket, ns3::Ipv4L3Protocol, ns3::CsmaChannel, ns3::UeInfo, anonymous_namespace{object-test-suite.cc}::DerivedB, ns3::Ipv4, ns3::PfFfMacScheduler, ns3::NetDevice, ns3::UanPhyDual, ns3::RadioBearerStatsCalculator, ns3::RandomPropagationDelayModel, ns3::BinaryErrorModel, ns3::UplinkSchedulerMBQoS, ns3::LiIonEnergySource, ns3::EnergySource, ns3::dsr::GraReply, ns3::Ipv4GlobalRouting, ns3::Ipv4StaticRouting, ns3::PacketSink, ns3::Ipv6RawSocketImpl, ns3::LteUeRrc, ns3::ListPositionAllocator, ns3::DcaTxop, ns3::Ipv6RawSocketFactory, ns3::BridgeNetDevice, ns3::LtePhy, ns3::LteUePhy, ns3::LteRadioBearerTagUdpClient, ns3::flame::FlameRtable, ns3::Socket, ns3::AlohaNoackNetDevice, ns3::VirtualNetDevice, ns3::RrFfMacScheduler, ns3::UanMacRcGw, ns3::UanPhyPerUmodem, ns3::YansWifiPhy, ns3::Ipv6L3Protocol, ns3::TcpSocket, ns3::dot11s::HwmpRtable, ns3::BSSchedulerRtps, ns3::SubscriberStationNetDevice, ns3::Derived, ns3::Application, ns3::WimaxPhy, anonymous_namespace{object-test-suite.cc}::BaseB, ns3::TcpSocketBase, ns3::BaseStationNetDevice, ns3::Ipv6StaticRouting, ns3::CsmaNetDevice, ns3::EpcHelper, ns3::LteEnbPhy, ns3::PointToPointNetDevice, ns3::AcousticModemEnergyModel, ns3::HybridBuildingsPropagationLossModel, ns3::RandomVariableStream, ns3::RttEstimator, ns3::MacStatsCalculator, ns3::RemSpectrumPhy, ns3::HierarchicalMobilityModel, ns3::UanNetDevice, ns3::UplinkSchedulerRtps, ns3::BuildingsPropagationLossModel, ns3::Ipv4NixVectorRouting, ns3::WaveformGenerator, ns3::TcpL4Protocol, ns3::MeshWifiInterfaceMac, ns3::Node, ns3::JakesProcess, ns3::YansErrorRateModel, ns3::UdpTraceClient, ns3::dsdv::RoutingProtocol, ns3::IpL4Protocol, ns3::Ipv6RoutingProtocol, ns3::LteHelper, ns3::LteEnbMac, ns3::LteRlc, ns3::NonCommunicatingNetDevice, ns3::BandwidthManager, ns3::aodv::RoutingProtocol, ns3::Scheduler, ns3::ArpCache, ns3::Ipv6Interface, ns3::NscTcpSocketImpl, ns3::UanChannel, ns3::NdiscCache, ns3::FfMacScheduler, ns3::RandomWaypointMobilityModel, ns3::SteadyStateRandomWaypointMobilityModel, ns3::SpectrumAnalyzer, ns3::WifiMacQueue, ns3::SimpleOfdmWimaxPhy, ns3::Radvd, ns3::EmuNetDevice, ns3::Ipv6Extension, ns3::Ipv6ListRouting, ns3::dot11s::PeerManagementProtocol, ns3::Cost231PropagationLossModel, ns3::WifiNetDevice, ns3::AntennaModel, ns3::BulkSendApplication, ns3::DeviceEnergyModel, ns3::RvBatteryModel, ns3::Ipv4RoutingProtocol, ns3::UdpSocketImpl, ns3::LteEnbNetDevice, ns3::LteInterference, ns3::LteUeNetDevice, ns3::MeshPointDevice, ns3::RegularWifiMac, ns3::Ping6, ns3::Ipv4Interface, ns3::Ipv6Option, ns3::EpcSgwPgwApplication, ns3::PropagationLossModel, ns3::SpectrumPhy, ns3::YansWifiChannel, ns3::GridBuildingAllocator, ns3::ArpL3Protocol, ns3::RadioEnvironmentMapHelper, ns3::LteNetDevice, ns3::SocketFactory, ns3::UanNoiseModelDefault, ns3::ParabolicAntennaModel, ns3::BuildingsMobilityModel, ns3::CalendarScheduler, ns3::HeapScheduler, ns3::EnergySourceContainer, ns3::Icmpv6L4Protocol, ns3::UdpL4Protocol, ns3::TraceFadingLossModel, ns3::LteTestRrc, ns3::dot11s::HwmpProtocol, ns3::PointToPointChannel, ns3::SpectrumChannel, ns3::SpectrumPropagationLossModel, ns3::InetTopologyReader, ns3::UanMac, ns3::BSSchedulerSimple, ns3::BSScheduler, ns3::ServiceFlowManager, ns3::NscTcpL4Protocol, ns3::TcpSocketFactory, ns3::UdpSocket, ns3::EpcEnbApplication, ns3::LteSimpleHelper, ns3::RandomWalk2dMobilityModel, ns3::OkumuraHataPropagationLossModel, ns3::UanMacCw, ns3::UplinkScheduler, ns3::CosineAntennaModel, ns3::UdpServer, ns3::Ipv4ListRouting, ns3::ErrorNetDevice, ns3::dot11s::PeerLink, ns3::MeshL2RoutingProtocol, ns3::Queue, ns3::SimpleNetDevice, ns3::ItuR1411LosPropagationLossModel, ns3::ItuR1411NlosOverRooftopPropagationLossModel, ns3::UanPhyCalcSinrDual, ns3::IdealWifiManager, ns3::UdpClient, ns3::Synchronizer, ns3::LteAmc, ns3::LteTestUePhy, ns3::RandomDirection2dMobilityModel, ns3::Kun2600MhzPropagationLossModel, ns3::OrbisTopologyReader, ns3::UanMacAloha, ns3::UanPhyPerGenDefault, ns3::UanPhyCalcSinr, ns3::VisualSimulatorImpl, ns3::WifiMac, ns3::UplinkSchedulerSimple, ns3::ConnectionManager, ns3::UdpEchoServer, anonymous_namespace{object-test-suite.cc}::DerivedA, ns3::Channel, ns3::SingleModelSpectrumChannel, ns3::RocketfuelTopologyReader, ns3::StaWifiMac, ns3::RandomBuildingPositionAllocator, ns3::ConfigTestObject, AlternateTestObject, ns3::Ipv6ExtensionDemux, ns3::Ipv6OptionDemux, ns3::TcpTahoe, ns3::LteUeMac, ns3::dot11s::AirtimeLinkMetricCalculator, ns3::MpiReceiver, ns3::ArfWifiManager, ns3::MsduAggregator, ns3::WifiChannel, ns3::LtePdcp, ns3::FriisSpectrumPropagationLossModel, ns3::OnoeWifiManager, ns3::SSLinkManager, ns3::SSScheduler, ns3::WimaxConnection, ns3::OhBuildingsPropagationLossModel, ns3::ListScheduler, ns3::TcpRxBuffer, ns3::TcpTxBuffer, ns3::UdpSocketFactory, ns3::LteStatsCalculator, ns3::UdpEchoClient, ns3::Building, ns3::TcpRfc793, ns3::LteHexGridEnbTopologyHelper, ns3::LteSimpleNetDevice, ns3::MobilityModel, ns3::SequenceNumberTestObj, ns3::PcapFileWrapper, ns3::AmrrWifiManager, ns3::ApWifiMac, ns3::RraaWifiManager, ns3::WimaxChannel, ns3::IsotropicAntennaModel, ns3::BuildingListPriv, ns3::ItuR1238PropagationLossModel, ns3::MapScheduler, ns3::RealtimeSimulatorImpl, ns3::LoopbackNetDevice, ns3::TcpReno, ns3::ErrorChannel, ns3::LteRlcAm, ns3::UanPropModelIdeal, ns3::AarfcdWifiManager, ns3::CaraWifiManager, ns3::NistErrorRateModel, ns3::BSLinkManager, ns3::BasicEnergySource, ns3::Ipv4RawSocketFactory, ns3::LteRadioBearerInfo, ns3::LteRlcUm, ns3::FlameStack, ns3::NodeListPriv, ns3::PropagationDelayModel, ns3::UanPropModelThorp, ns3::UanTransducerHd, ns3::BurstProfileManager, ns3::IpcsClassifier, ns3::SSManager, ns3::WimaxMacQueue, ns3::V4Ping, ns3::BridgeChannel, ns3::DefaultSimulatorImpl, ns3::TcpNewReno, ns3::SimpleChannel, ns3::JakesPropagationLossModel, ns3::AarfWifiManager, ns3::AdhocWifiMac, ns3::ConstantRateWifiManager, ns3::SimulatorImpl, ns3::ConstantVelocityMobilityModel, ns3::PositionAllocator, ns3::PacketBurst, ns3::PacketSocketFactory, ns3::PointToPointRemoteChannel, ns3::WifiPhyStateHelper, ns3::Dot11sStack, ns3::ChannelListPriv, ns3::DropTailQueue, ns3::ErrorRateModel, ns3::ConstantPositionMobilityModel, ns3::ConstantSpectrumPropagationLossModel, ns3::Dcf, ns3::MsduStandardAggregator, ns3::Ns3NscStack, ns3::ConstantAccelerationMobilityModel, anonymous_namespace{object-test-suite.cc}::BaseA, ns3::UanNoiseModel, TestObject, ns3::SimpleDeviceEnergyModel, ns3::Ipv4RawSocketImpl, ns3::Icmpv4L4Protocol, and A.

Definition at line 75 of file object.cc.

References ns3::TypeId::SetParent().

Referenced by DoGetObject(), TestObject::GetTypeId(), and AlternateTestObject::GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::Object::NotifyNewAggregate ( void  )
protectedvirtual

This method is invoked whenever two sets of objects are aggregated together. It is invoked exactly once for each object in both sets. This method can be overriden by subclasses who wish to be notified of aggregation events. These subclasses must chain up to their base class NotifyNewAggregate method. It is safe to call GetObject and AggregateObject from within this method.

This function must be implemented in the stack that needs to notify other stacks connected to the node of their presence in the node.

Reimplemented in ns3::dsr::DsrRouting, ns3::Ipv6L3Protocol, ns3::Ipv4L3Protocol, ns3::Icmpv6L4Protocol, ns3::UdpL4Protocol, ns3::TcpL4Protocol, ns3::NscTcpL4Protocol, ns3::ArpL3Protocol, and ns3::Icmpv4L4Protocol.

Definition at line 298 of file object.cc.

Referenced by AggregateObject().

+ Here is the caller graph for this function:

void ns3::Object::SetTypeId ( TypeId  tid)
private
Parameters
tidan TypeId

Invoked from ns3::CreateObject only. Initialize the m_tid member variable to keep track of the type of this object instance.

Definition at line 310 of file object.cc.

References Check(), m_tid, and NS_ASSERT.

Referenced by ns3::ObjectFactory::Create().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::Object::Start ( void  )

This method calls the virtual DoStart method on all the objects aggregated to this object. DoStart will be called only once over the lifetime of an object, just like DoDispose is called only once.

See Also
DoStart

Note: the code here is a bit tricky because we need to protect ourselves from modifications in the aggregate array while DoStart is called. The user's implementation of the DoStart method could call GetObject (which could reorder the array) and it could call AggregateObject which would add an object at the end of the array. To be safe, we restart iteration over the array whenever we call some user code, just in case.

Reimplemented in ns3::SubscriberStationNetDevice, ns3::BaseStationNetDevice, ns3::WimaxNetDevice, ns3::LteRlcSm, ns3::LteTestPdcp, ns3::WaveformGenerator, ns3::SpectrumAnalyzer, ns3::LteTestRrc, ns3::LteRlcAm, ns3::LteRlcUm, and ns3::LtePdcp.

Definition at line 167 of file object.cc.

References ns3::Object::Aggregates::buffer, DoStart(), m_aggregates, m_started, and ns3::Object::Aggregates::n.

Referenced by ns3::NodeListPriv::Add(), ns3::BuildingListPriv::Add(), ns3::Node::AddApplication(), ns3::Node::AddDevice(), ns3::LteHelper::Attach(), ns3::SteadyStateRandomWaypointTest::DoRun(), ns3::WaypointMobilityModelNotifyTest::DoRun(), ns3::Ipv4ListRouting::DoStart(), ns3::LteUeNetDevice::DoStart(), ns3::WifiNetDevice::DoStart(), ns3::ApWifiMac::DoStart(), ns3::LteEnbNetDevice::DoStart(), ns3::Node::DoStart(), ns3::RegularWifiMac::DoStart(), ns3::LteHelper::DoStart(), ns3::EmuNetDevice::EmuNetDevice(), ns3::FlowMonitor::GetTypeId(), ns3::LteSimpleHelper::InstallEnbDevice(), ns3::LteHelper::InstallEnbDevice(), ns3::LteHelper::InstallSingleEnbDevice(), and ns3::TapBridge::TapBridge().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::Object::UpdateSortedArray ( struct Aggregates aggregates,
uint32_t  i 
) const
private

Definition at line 215 of file object.cc.

References ns3::Object::Aggregates::buffer, and m_getObjectCount.

Referenced by AggregateObject(), and DoGetObject().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class AggregateIterator
friend

Definition at line 226 of file object.h.

Referenced by GetAggregateIterator().

template<typename T >
Ptr<T> CompleteConstruct ( T *  object)
friend

Definition at line 383 of file object.h.

template<typename T >
Ptr<T> CopyObject ( Ptr< T >  object)
friend
Parameters
objecta pointer to the object to copy.
Returns
a copy of the input object.

This method invoke the copy constructor of the input object and returns the new instance.

template<typename T >
Ptr<T> CopyObject ( Ptr< const T >  object)
friend
Parameters
objecta pointer to the object to copy.
Returns
a copy of the input object.

This method invoke the copy constructor of the input object and returns the new instance.

friend struct ObjectDeleter
friend

Definition at line 227 of file object.h.

Member Data Documentation

struct Aggregates* ns3::Object::m_aggregates
private

a pointer to an array of 'aggregates'. i.e., a pointer to each object aggregated to this object is stored in this array. The array is shared by all aggregated objects so the size of the array is indirectly a reference count.

Definition at line 294 of file object.h.

Referenced by AggregateObject(), CheckLoose(), Dispose(), DoDelete(), DoGetObject(), GetObject(), ns3::Object::AggregateIterator::Next(), Object(), Start(), and ~Object().

bool ns3::Object::m_disposed
private

Set to true when the DoDispose method of the object has run, false otherwise.

Definition at line 282 of file object.h.

Referenced by AggregateObject(), Dispose(), DoDelete(), and DoDispose().

uint32_t ns3::Object::m_getObjectCount
private

Indicates the number of times the object was accessed with a call to GetObject. This integer is used to implement a heuristic to sort the array of aggregates to put at the start of the array the most-frequently accessed elements.

Definition at line 301 of file object.h.

Referenced by DoGetObject(), and UpdateSortedArray().

bool ns3::Object::m_started
private

Set to true once the DoStart method has run, false otherwise

Definition at line 287 of file object.h.

Referenced by DoStart(), and Start().

TypeId ns3::Object::m_tid
private

Identifies the type of this object instance.

Definition at line 277 of file object.h.

Referenced by GetInstanceTypeId(), and SetTypeId().


The documentation for this class was generated from the following files: