Attribute implementation for Time
More...
Classes | |
class | ns3::TimeChecker |
AttributeChecker implementation for TimeValue. More... | |
class | ns3::TimeValue |
AttributeValue implementation for Time. More... | |
Functions | |
template<typename T1 > | |
Ptr< const AttributeAccessor > | ns3::MakeTimeAccessor (T1 a1) |
Create an AttributeAccessor for a class data member, or a lone class get functor or set method. More... | |
template<typename T1 , typename T2 > | |
Ptr< const AttributeAccessor > | ns3::MakeTimeAccessor (T1 a1, T2 a2) |
Create an AttributeAccessor using a pair of get functor and set methods from a class. More... | |
Attribute implementation for Time
ns3::Ptr< const ns3::AttributeAccessor > ns3::MakeTimeAccessor | ( | T1 | a1 | ) |
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
The get functor method should have a signature like
where T
is the class and U
is the type of the return value.
The set method should have one of these signatures:
where T
is the class and U
is the type of the value to set the attribute to, which should be compatible with the specific AttributeValue type V
which holds the value (or the type implied by the name Make<V>Accessor
of this function.) In the case of a setter
returning bool
, the return value should be true
if the value could be set successfully.
V | [explicit] (If present) The specific AttributeValue type to use to represent the Attribute. (If not present, the type V is implicit in the name of this function, as "Make<V>Accessor" |
T1 | [deduced] The type of the class data member, or the type of the class get functor or set method. |
[in] | a1 | The address of the data member, or the get or set method. |
Definition at line 1077 of file nstime.h.
Referenced by ns3::BasicEnergySource::GetTypeId(), ns3::DelayJitterEstimationTimestampTag::GetTypeId(), ns3::LteFfrDistributedAlgorithm::GetTypeId(), ns3::LteRlcAm::GetTypeId(), ns3::UdpEchoClient::GetTypeId(), ns3::Probe::GetTypeId(), ns3::WifiMac::GetTypeId(), ns3::RttEstimator::GetTypeId(), ns3::V4Ping::GetTypeId(), ns3::UdpClient::GetTypeId(), ns3::AmrrWifiManager::GetTypeId(), ns3::Ping6::GetTypeId(), ns3::BasicEnergyHarvester::GetTypeId(), ns3::dot11s::PeerLink::GetTypeId(), ns3::TcpHybla::GetTypeId(), ns3::RvBatteryModel::GetTypeId(), ns3::OnoeWifiManager::GetTypeId(), ns3::RandomWalk2dMobilityModel::GetTypeId(), ns3::SimpleChannel::GetTypeId(), ns3::ApWifiMac::GetTypeId(), ns3::TraceFadingLossModel::GetTypeId(), ns3::TcpSocket::GetTypeId(), ns3::WifiMacQueue::GetTypeId(), ns3::DhcpServer::GetTypeId(), ns3::TcpHtcp::GetTypeId(), ns3::DhcpClient::GetTypeId(), ns3::Ipv6PmtuCache::GetTypeId(), ns3::MeshWifiInterfaceMac::GetTypeId(), ns3::PieQueueDisc::GetTypeId(), ns3::UanMacCw::GetTypeId(), ns3::aodv::RoutingProtocol::GetTypeId(), ns3::PointToPointChannel::GetTypeId(), ns3::Icmpv6L4Protocol::GetTypeId(), ns3::PacketSocketClient::GetTypeId(), ns3::SpectrumAnalyzer::GetTypeId(), ns3::dsdv::RoutingProtocol::GetTypeId(), ns3::RealtimeSimulatorImpl::GetTypeId(), ns3::TcpLedbat::GetTypeId(), ns3::WaveformGenerator::GetTypeId(), ns3::RraaWifiManager::GetTypeId(), ns3::UanMacRcGw::GetTypeId(), ns3::Application::GetTypeId(), ns3::TvSpectrumTransmitter::GetTypeId(), ns3::CoDelQueueDisc::GetTypeId(), ns3::dot11s::HwmpProtocol::GetTypeId(), ns3::DynamicQueueLimits::GetTypeId(), ns3::PointToPointEpcHelper::GetTypeId(), ns3::WifiPhy::GetTypeId(), ns3::PointToPointNetDevice::GetTypeId(), ns3::BridgeNetDevice::GetTypeId(), ns3::ArpCache::GetTypeId(), ns3::BaseStationNetDevice::GetTypeId(), EpsBearerTagUdpClient::GetTypeId(), ns3::LiIonEnergySource::GetTypeId(), ns3::A3RsrpHandoverAlgorithm::GetTypeId(), ns3::ChannelCoordinator::GetTypeId(), ns3::RrpaaWifiManager::GetTypeId(), ns3::Txop::GetTypeId(), ns3::ThreeGppHttpVariables::GetTypeId(), ns3::WimaxPhy::GetTypeId(), ns3::SixLowPanNetDevice::GetTypeId(), ns3::SubscriberStationNetDevice::GetTypeId(), ns3::UplinkSchedulerMBQoS::GetTypeId(), ns3::RedQueueDisc::GetTypeId(), ns3::flame::FlameRtable::GetTypeId(), ns3::GaussMarkovMobilityModel::GetTypeId(), ns3::Ipv4L3Protocol::GetTypeId(), ns3::LteUePhy::GetTypeId(), ns3::FdNetDevice::GetTypeId(), ns3::olsr::RoutingProtocol::GetTypeId(), ns3::RadioBearerStatsCalculator::GetTypeId(), ns3::flame::FlameProtocol::GetTypeId(), ns3::CsmaChannel::GetTypeId(), ns3::AthstatsWifiTraceSink::GetTypeId(), ns3::dsr::DsrRouting::GetTypeId(), AttributeObjectTest::GetTypeId(), TimestampTag::GetTypeId(), ns3::StaWifiMac::GetTypeId(), ns3::TapBridge::GetTypeId(), ns3::LteUeRrc::GetTypeId(), ns3::FlowMonitor::GetTypeId(), ns3::MinstrelWifiManager::GetTypeId(), ns3::UanMacRc::GetTypeId(), ns3::Rip::GetTypeId(), ns3::RipNg::GetTypeId(), ns3::MinstrelHtWifiManager::GetTypeId(), ns3::TcpSocketBase::GetTypeId(), and ns3::LteEnbRrc::GetTypeId().
ns3::Ptr< const ns3::AttributeAccessor > ns3::MakeTimeAccessor | ( | T1 | a1, |
T2 | a2 | ||
) |
Create an AttributeAccessor using a pair of get functor and set methods from a class.
The get functor method should have a signature like
where T
is the class and U
is the type of the return value.
The set method should have one of these signatures:
where T
is the class and U
is the type of the value to set the attribute to, which should be compatible with the specific AttributeValue type V
which holds the value (or the type implied by the name Make<V>Accessor
of this function.) In the case of a setter
returning bool
, the return value should be true if the value could be set successfully.
In practice the setter and getter arguments can appear in either order, but setter first is preferred.
V | [explicit] (If present) The specific AttributeValue type to use to represent the Attribute. (If not present, the type V is implicit in the name of this function as "Make<V>Accessor" |
T1 | [deduced] The type of the class data member, or the type of the class get functor or set method. |
T2 | [deduced] The type of the getter class functor method. |
[in] | a2 | The address of the class method to set the attribute. |
[in] | a1 | The address of the data member, or the get or set method. |