add extra checker construction function
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Tue, 26 Feb 2008 20:23:43 +0100
changeset 2486 aeee361ade33
parent 2485 1590feefbf20
child 2487 13dc7808d84c
add extra checker construction function
src/core/integer.h
--- a/src/core/integer.h	Tue Feb 26 20:22:13 2008 +0100
+++ b/src/core/integer.h	Tue Feb 26 20:23:43 2008 +0100
@@ -30,6 +30,9 @@
 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
@@ -38,6 +41,14 @@
 
 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)
 {
   return MakeIntegerChecker (std::numeric_limits<T>::min (),