add extra checker construction function

This commit is contained in:
Mathieu Lacage
2008-02-26 20:23:43 +01:00
parent 200a9c69ff
commit 0a8fd09acf

View File

@@ -30,12 +30,23 @@ ATTRIBUTE_ACCESSOR_DEFINE(Integer);
template <typename T>
Ptr<const AttributeChecker> MakeIntegerChecker (void);
template <typename T>
Ptr<const AttributeChecker> MakeIntegerChecker (int64_t min);
Ptr<const AttributeChecker> MakeIntegerChecker (int64_t min, int64_t max);
} // namespace ns3
namespace ns3 {
template <typename T>
Ptr<const AttributeChecker>
MakeIntegerChecker (int64_t min)
{
return MakeIntegerChecker (min,
std::numeric_limits<T>::max ());
}
template <typename T>
Ptr<const AttributeChecker>
MakeIntegerChecker (void)