LCOV - code coverage report
Current view: top level - route - path.h (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 7 7 100.0 %
Date: 2026-05-15 13:12:55 Functions: 4 5 80.0 %
Legend: Lines: hit not hit

          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      966247 :     Path() : time_stamp_usecs_(0) {
      13      966242 :     }
      14      966106 :     virtual ~Path() { }
      15             :     virtual std::string ToString() const = 0;
      16             : 
      17        5633 :     const uint64_t time_stamp_usecs() const { return time_stamp_usecs_; }
      18     2082924 :     void set_time_stamp_usecs(uint64_t time_stamp_usecs) {
      19     2082924 :         time_stamp_usecs_ = time_stamp_usecs;
      20     2082924 :     }
      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

Generated by: LCOV version 1.14