CodeSonar C++ API
[For improved navigation, enable JavaScript.]
cs_cfg_edge.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023, an unpublished work by CodeSecure, Inc.
3  * ALL RIGHTS RESERVED
4  *
5  * Copyright (c) 2013-2023, an unpublished work by GrammaTech, Inc.
6  * ALL RIGHTS RESERVED
7  *
8  * This software is furnished under a license and may be used and
9  * copied only in accordance with the terms of such license and the
10  * inclusion of the above copyright notice. This software or any
11  * other copies thereof may not be provided or otherwise made
12  * available to any other person. Title to and ownership of the
13  * software is retained by CodeSecure, Inc.
14  */
15 
16 #ifndef CS_CFG_EDGE_HPP
17 #define CS_CFG_EDGE_HPP
18 
19 #include "cs_cfg_edge_fwd.hpp"
20 #include "cs_point_decl.hpp"
21 #include "cs_edge_label.hpp"
22 
25 namespace cs{
26  inline cfg_edge cglue<cfg_edge>::wrap(const cs_cfg_edge &c)
27  {
28  return cfg_edge(
29  cglue<point>::wrap(c.sv),
30  cglue<edge_label>::wrap(c.lbl));
31  }
32  inline cs_cfg_edge cglue<cfg_edge>::unwrap(const cfg_edge &c)
33  {
34  cs_cfg_edge rv;
35  rv.sv = cglue<point>::unwrap(c.first);
36  rv.lbl = cglue<edge_label>::unwrap(c.second);
37  return rv;
38  }
39 }
40 
41 #endif /* CS_CFG_EDGE_HPP */
Namespace for CodeSonar/CodeSurfer API.
Definition: cs_ast.hpp:33
std::pair< cs::point, cs::edge_label > cfg_edge
A std::pair (p, el) where:
Definition: cs_tplt_instantiations.hpp:130