Ifpack2 Templated Preconditioning Package  Version 1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Ifpack2_Details_RowGraph.hpp
1 // @HEADER
2 // *****************************************************************************
3 // Ifpack2: Templated Object-Oriented Algebraic Preconditioner Package
4 //
5 // Copyright 2009 NTESS and the Ifpack2 contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef IFPACK2_DETAILS_ROWGRAPH_HPP
11 #define IFPACK2_DETAILS_ROWGRAPH_HPP
12 
13 #include "Ifpack2_ConfigDefs.hpp"
14 #include "Tpetra_RowGraph.hpp"
15 
16 namespace Ifpack2 {
17 namespace Details {
18 
29 template <class GraphType>
30 class RowGraph : virtual public Tpetra::RowGraph<typename GraphType::local_ordinal_type,
31  typename GraphType::global_ordinal_type,
32  typename GraphType::node_type> {
33  public:
35 
36  typedef typename GraphType::local_ordinal_type local_ordinal_type;
37  typedef typename GraphType::global_ordinal_type global_ordinal_type;
38  typedef typename GraphType::node_type node_type;
39  typedef typename GraphType::local_inds_host_view_type local_inds_host_view_type;
40  typedef typename GraphType::nonconst_local_inds_host_view_type nonconst_local_inds_host_view_type;
41  typedef typename GraphType::global_inds_host_view_type global_inds_host_view_type;
42  typedef typename GraphType::nonconst_global_inds_host_view_type nonconst_global_inds_host_view_type;
44 
46 
48  virtual ~RowGraph() = default;
49 
51 
56 };
57 
58 } // namespace Details
59 } // namespace Ifpack2
60 
61 #endif // IFPACK2_DETAILS_ROWGRAPH_HPP
All Ifpack2 implementations of Tpetra::RowGraph must inherit from this class.
Definition: Ifpack2_Details_RowGraph.hpp:30
virtual ~RowGraph()=default
Destructor (virtual for memory safety of derived classes)