Program Listing for File HSOuterEdge.h

Return to documentation for file (src/sta/HSOuterEdge.h)

#pragma once
#include "HSBaseObj.h"

namespace HSFullTiming {

// The HSOuterEdge class represents an edge in the timing graph that connects
// different partitions. It inherits from HSBaseObj to include an ID.
class HSOuterEdge : public HSBaseObj {
 public:
  // Constructor for HSOuterEdge.
  // @param partFrom The ID of the partition the edge is from.
  // @param partTo The ID of the partition the edge is to.
  HSOuterEdge(unsigned int partFrom, unsigned int partTo)
  {
    m_partFrom = partFrom;
    m_partTo   = partTo;
    // m_bottom_port = std::string("");
  }
  // The ID of the partition the edge is from.
  unsigned int m_partFrom = 0;
  // The ID of the partition the edge is to.
  unsigned int m_partTo = 0;
  // The level of the edge in the timing graph.
  short m_level = -1;
  // A boolean indicating whether the edge is a timing edge.
  bool m_bTiming = false;
};

}  // namespace HSFullTiming