AttributeValue implementation for Integer More...
Files | |
file | integer.cc |
ns3::MakeIntegerChecker implementation. | |
file | integer.h |
ns3::IntegerValue attribute value declarations and template implementations. | |
Classes | |
class | IntegerChecker |
AttributeChecker implementation for IntegerValue. More... | |
class | ns3::IntegerValue |
Hold a signed integer type. More... | |
Functions | |
template<typename T1 > | |
Ptr< const AttributeAccessor > | ns3::MakeIntegerAccessor (T1 a1) |
Create an AttributeAccessor for a class data member, or a lone class get functor or set method. | |
template<typename T1 , typename T2 > | |
Ptr< const AttributeAccessor > | ns3::MakeIntegerAccessor (T1 a1, T2 a2) |
Create an AttributeAccessor using a pair of get functor and set methods from a class. | |
Ptr< const AttributeChecker > | ns3::internal::MakeIntegerChecker (int64_t min, int64_t max, std::string name) |
Make an Integer attribute checker with embedded numeric type name. | |
template<typename T > | |
Ptr< const AttributeChecker > | ns3::MakeIntegerChecker () |
AttributeValue implementation for Integer
Ptr< const AttributeAccessor > ns3::MakeIntegerAccessor | ( | 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 35 of file integer.h.
Referenced by AttributeObjectTest::GetTypeId(), ConfigExample::GetTypeId(), DeprecatedAttribute::GetTypeId(), ns3::BinomialRandomVariable::GetTypeId(), ns3::EhtConfiguration::GetTypeId(), ns3::energy::RvBatteryModel::GetTypeId(), ns3::ErlangRandomVariable::GetTypeId(), ns3::FdTbfqFfMacScheduler::GetTypeId(), ns3::Icmpv6L4Protocol::GetTypeId(), ns3::IpL4Protocol::GetTypeId(), ns3::lrwpan::LrWpanLqiTag::GetTypeId(), ns3::LteEnbRrc::GetTypeId(), ns3::LteUePowerControl::GetTypeId(), ns3::RadioEnvironmentMapHelper::GetTypeId(), ns3::RandomVariableStream::GetTypeId(), ns3::SequentialRandomVariable::GetTypeId(), ns3::TdTbfqFfMacScheduler::GetTypeId(), ns3::tests::BaseConfigObject::GetTypeId(), ns3::tests::ConfigTestObject::GetTypeId(), ns3::ThreeGppChannelModel::GetTypeId(), ns3::UdpSocket::GetTypeId(), and ns3::ZipfRandomVariable::GetTypeId().
Ptr< const AttributeAccessor > ns3::MakeIntegerAccessor | ( | 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::internal::MakeIntegerChecker | ( | int64_t | min, |
int64_t | max, | ||
std::string | name ) |
Make an Integer attribute checker with embedded numeric type name.
[in] | min | The minimum allowed value. |
[in] | max | The maximum allowed value. |
[in] | name | The original type name ("int8_t", "int16_t", etc.). |
Definition at line 41 of file integer.cc.
References ns3::Copy(), ns3::Create(), ns3::IntegerValue::Get(), NS_LOG_FUNCTION, and NS_LOG_FUNCTION_NOARGS.
Referenced by ns3::MakeIntegerChecker(), ns3::MakeIntegerChecker(), and ns3::MakeIntegerChecker().
Ptr< const AttributeChecker > ns3::MakeIntegerChecker | ( | ) |
Definition at line 99 of file integer.h.
References ns3::internal::MakeIntegerChecker(), and ns3::TypeNameGet().
Referenced by AttributeContainerSerializationTestCase::DoRun(), AttributeContainerObject::GetTypeId(), AttributeObjectTest::GetTypeId(), ConfigExample::GetTypeId(), DeprecatedAttribute::GetTypeId(), ns3::BinomialRandomVariable::GetTypeId(), ns3::EhtConfiguration::GetTypeId(), ns3::energy::RvBatteryModel::GetTypeId(), ns3::ErlangRandomVariable::GetTypeId(), ns3::FdTbfqFfMacScheduler::GetTypeId(), ns3::Icmpv6L4Protocol::GetTypeId(), ns3::IpL4Protocol::GetTypeId(), ns3::lrwpan::LrWpanLqiTag::GetTypeId(), ns3::LteEnbRrc::GetTypeId(), ns3::LteUePowerControl::GetTypeId(), ns3::RadioEnvironmentMapHelper::GetTypeId(), ns3::RandomVariableStream::GetTypeId(), ns3::SequentialRandomVariable::GetTypeId(), ns3::TdTbfqFfMacScheduler::GetTypeId(), ns3::tests::BaseConfigObject::GetTypeId(), ns3::tests::ConfigTestObject::GetTypeId(), ns3::ThreeGppChannelModel::GetTypeId(), ns3::UdpSocket::GetTypeId(), ns3::ZipfRandomVariable::GetTypeId(), and PairObject::GetTypeId().