MueLu  Version of the Day
MueLu_BoostGraphviz.hpp
Go to the documentation of this file.
1 #ifndef MUELU_BOOSTGRAPHVIZ_HPP
2 #define MUELU_BOOSTGRAPHVIZ_HPP
3 
4 // This header file can be used in place of <boost/graph/graphviz.hpp>. It disable the warnings present in boost.
5 
6 // Note: pragma warnings available since gcc 4.2
7 // pragma push/pop available since gcc 4.6
8 
9 #include "MueLu_ConfigDefs.hpp"
10 #if defined(HAVE_MUELU_BOOST) && defined(HAVE_MUELU_BOOST_FOR_REAL)
11 
12 #ifdef __GNUC__
13 # if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406
14 #pragma GCC diagnostic push
15 #pragma GCC diagnostic ignored "-Wshadow"
16 #endif // GCC_VERSION
17 #endif // __GNUC__
18 
19 #include <boost/graph/graphviz.hpp>
20 
21 #ifdef __GNUC__
22 # if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406
23 #pragma GCC diagnostic pop
24 #endif // GCC_VERSION
25 #endif // __GNUC__
26 
27 // define boost graph types
28 typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS,
29  boost::property<boost::vertex_name_t, std::string,
30  boost::property<boost::vertex_color_t, std::string,
31  boost::property<boost::vertex_index_t, std::string> > >,
32  boost::property<boost::edge_name_t, std::string,
33  boost::property<boost::edge_color_t, std::string> > > BoostGraph;
34 typedef boost::dynamic_properties BoostProperties;
35 typedef boost::graph_traits<BoostGraph>::vertex_descriptor BoostVertex;
36 typedef boost::graph_traits<BoostGraph>::edge_descriptor BoostEdge;
37 
38 
39 #endif // HAVE_MUELU_BOOST && HAVE_MUELU_BOOST_FOR_REAL
40 
41 #endif // MUELU_BOOSTGRAPHVIZ_HPP