Ophidian
 All Classes Namespaces Functions
graph_arcs_timing.h
1 /*
2  * Copyright 2016 Ophidian
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10 
11  http://www.apache.org/licenses/LICENSE-2.0
12 
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19  */
20 
21 #ifndef SRC_TIMING_GRAPH_ARCS_TIMING_H_
22 #define SRC_TIMING_GRAPH_ARCS_TIMING_H_
23 
24 #include <lemon/list_graph.h>
25 #include <boost/units/systems/si.hpp>
26 #include "transition.h"
27 namespace ophidian {
28 namespace timing {
29 
31  lemon::ListDigraph::ArcMap<boost::units::quantity<boost::units::si::time> > m_delays;
32  lemon::ListDigraph::ArcMap<boost::units::quantity<boost::units::si::time> > m_slews;
33 public:
34  graph_arcs_timing(const lemon::ListDigraph & graph);
35  virtual ~graph_arcs_timing();
36  void delay(lemon::ListDigraph::Arc, const boost::units::quantity<boost::units::si::time> delay);
37  const boost::units::quantity<boost::units::si::time> delay(lemon::ListDigraph::Arc arc) const {
38  return m_delays[arc];
39  }
40  void slew(lemon::ListDigraph::Arc, const boost::units::quantity<boost::units::si::time> delay);
41  const boost::units::quantity<boost::units::si::time> slew(lemon::ListDigraph::Arc arc) const {
42  return m_slews[arc];
43  }
44 };
45 
46 } /* namespace timing */
47 } /* namespace ophidian */
48 
49 #endif /* SRC_TIMING_GRAPH_ARCS_TIMING_H_ */
Definition: graph.h:44
Definition: graph_arcs_timing.h:30