Xpetra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Xpetra_Access.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Xpetra: A linear algebra interface package
4 //
5 // Copyright 2012 NTESS and the Xpetra contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef XPETRA_ACCESS_HPP
11 #define XPETRA_ACCESS_HPP
12 
13 namespace Xpetra {
14 namespace Access {
15 // Structs for Access tags, these should not be used by user code
16 struct ReadOnlyStruct {};
18 struct ReadWriteStruct {};
19 
20 // Tag indicating intent to read up-to-date data, but not modify.
21 constexpr struct ReadOnlyStruct ReadOnly = ReadOnlyStruct();
22 // Tag indicating intent to completely overwrite existing data.
24 // Tag indicating intent to both read up-to-date data and modify it.
26 } // namespace Access
27 } // namespace Xpetra
28 #endif // XPETRA_ACCESS_HPP
constexpr struct ReadOnlyStruct ReadOnly
constexpr struct OverwriteAllStruct OverwriteAll
constexpr struct ReadWriteStruct ReadWrite