LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2005,2006 INRIA | 3 * Copyright (c) 2005,2006 INRIA |
4 * Copyright (c) 2007 Emmanuelle Laprise | 4 * Copyright (c) 2007 Emmanuelle Laprise |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License version 2 as | 7 * it under the terms of the GNU General Public License version 2 as |
8 * published by the Free Software Foundation; | 8 * published by the Free Software Foundation; |
9 * | 9 * |
10 * This program is distributed in the hope that it will be useful, | 10 * This program is distributed in the hope that it will be useful, |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 | 433 |
434 std::istream & | 434 std::istream & |
435 operator >> (std::istream & is, Time & time) | 435 operator >> (std::istream & is, Time & time) |
436 { | 436 { |
437 std::string value; | 437 std::string value; |
438 is >> value; | 438 is >> value; |
439 time = Time (value); | 439 time = Time (value); |
440 return is; | 440 return is; |
441 } | 441 } |
442 | 442 |
443 ATTRIBUTE_VALUE_IMPLEMENT_LIB (Time, NS3CORELIB); | 443 ATTRIBUTE_VALUE_IMPLEMENT_LIB (Time, NS3_EXPORT); |
444 | 444 |
445 Ptr<const AttributeChecker> | 445 Ptr<const AttributeChecker> |
446 MakeTimeChecker (const Time min, const Time max) | 446 MakeTimeChecker (const Time min, const Time max) |
447 { | 447 { |
448 NS_LOG_FUNCTION (min << max); | 448 NS_LOG_FUNCTION (min << max); |
449 | 449 |
450 struct Checker : public AttributeChecker | 450 struct Checker : public AttributeChecker |
451 { | 451 { |
452 Checker (const Time minValue, const Time maxValue) | 452 Checker (const Time minValue, const Time maxValue) |
453 : m_minValue (minValue), | 453 : m_minValue (minValue), |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 } | 492 } |
493 Time m_minValue; | 493 Time m_minValue; |
494 Time m_maxValue; | 494 Time m_maxValue; |
495 } *checker = new Checker (min, max); | 495 } *checker = new Checker (min, max); |
496 return Ptr<const AttributeChecker> (checker, false); | 496 return Ptr<const AttributeChecker> (checker, false); |
497 } | 497 } |
498 | 498 |
499 | 499 |
500 } // namespace ns3 | 500 } // namespace ns3 |
501 | 501 |
LEFT | RIGHT |