Line data Source code
1 : /* 2 : * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. 3 : */ 4 : 5 : #ifndef ctrlplane_path_h 6 : #define ctrlplane_path_h 7 : 8 : #include <boost/intrusive/list.hpp> 9 : 10 : class Path { 11 : public: 12 969856 : Path() : time_stamp_usecs_(0) { 13 969840 : } 14 969699 : virtual ~Path() { } 15 : virtual std::string ToString() const = 0; 16 : 17 5607 : const uint64_t time_stamp_usecs() const { return time_stamp_usecs_; } 18 2090151 : void set_time_stamp_usecs(uint64_t time_stamp_usecs) { 19 2090151 : time_stamp_usecs_ = time_stamp_usecs; 20 2090151 : } 21 : 22 : private: 23 : friend class Route; 24 : boost::intrusive::list_member_hook<> node_; 25 : uint64_t time_stamp_usecs_; 26 : DISALLOW_COPY_AND_ASSIGN(Path); 27 : }; 28 : 29 : #endif