Attribute implementation for String
More...
Files | |
file | string.cc |
ns3::StringValue attribute value implementation. | |
file | string.h |
ns3::StringValue attribute value declarations. | |
Classes | |
class | ns3::StringChecker |
AttributeChecker implementation for StringValue. More... | |
class | ns3::StringValue |
Hold variables of type string. More... | |
Functions | |
template<typename T1 > | |
Ptr< const AttributeAccessor > | ns3::MakeStringAccessor (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::MakeStringAccessor (T1 a1, T2 a2) |
Create an AttributeAccessor using a pair of get functor and set methods from a class. More... | |
Ptr< const AttributeChecker > | ns3::MakeStringChecker (void) |
More... | |
Attribute implementation for String
ns3::Ptr< const ns3::AttributeAccessor > ns3::MakeStringAccessor | ( | 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 42 of file string.h.
Referenced by ns3::DataCollectionObject::GetTypeId(), ns3::NscTcpL4Protocol::GetTypeId(), ns3::TraceFadingLossModel::GetTypeId(), ns3::RadioEnvironmentMapHelper::GetTypeId(), ns3::SimpleOfdmWimaxPhy::GetTypeId(), ns3::MacStatsCalculator::GetTypeId(), ns3::UdpTraceClient::GetTypeId(), ns3::PhyRxStatsCalculator::GetTypeId(), ns3::PhyTxStatsCalculator::GetTypeId(), ns3::PointToPointEpcHelper::GetTypeId(), ns3::EmuEpcHelper::GetTypeId(), ns3::PhyStatsCalculator::GetTypeId(), ns3::ConfigStore::GetTypeId(), ns3::RadioBearerStatsCalculator::GetTypeId(), ns3::PssFfMacScheduler::GetTypeId(), ns3::dsr::DsrRouting::GetTypeId(), ns3::CqaFfMacScheduler::GetTypeId(), ns3::FqCoDelQueueDisc::GetTypeId(), ns3::LteHelper::GetTypeId(), and ns3::TapBridge::GetTypeId().
ns3::Ptr< const ns3::AttributeAccessor > ns3::MakeStringAccessor | ( | 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. |
Ptr< const AttributeChecker > ns3::MakeStringChecker | ( | void | ) |
Definition at line 30 of file string.cc.
Referenced by ns3::Ns3NscStack::GetInstanceTypeId(), ns3::DataCollectionObject::GetTypeId(), ns3::NscTcpL4Protocol::GetTypeId(), ns3::TraceFadingLossModel::GetTypeId(), ns3::RadioEnvironmentMapHelper::GetTypeId(), ns3::MacStatsCalculator::GetTypeId(), ns3::SimpleOfdmWimaxPhy::GetTypeId(), ns3::UdpTraceClient::GetTypeId(), ns3::PhyRxStatsCalculator::GetTypeId(), ns3::PhyTxStatsCalculator::GetTypeId(), ns3::PointToPointEpcHelper::GetTypeId(), ns3::EmuEpcHelper::GetTypeId(), ns3::PhyStatsCalculator::GetTypeId(), ns3::ConfigStore::GetTypeId(), ns3::RadioBearerStatsCalculator::GetTypeId(), ns3::PssFfMacScheduler::GetTypeId(), ns3::CqaFfMacScheduler::GetTypeId(), ns3::dsr::DsrRouting::GetTypeId(), ns3::FqCoDelQueueDisc::GetTypeId(), ns3::LteHelper::GetTypeId(), and ns3::TapBridge::GetTypeId().