Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
Tpetra_Access.hpp
1// @HEADER
2// *****************************************************************************
3// Tpetra: Templated Linear Algebra Services Package
4//
5// Copyright 2008 NTESS and the Tpetra contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef TPETRA_ACCESS_HPP
11#define TPETRA_ACCESS_HPP
12
13namespace Tpetra {
14namespace Access {
15// Structs for Access tags, these should not be used by user code
16struct ReadOnlyStruct {};
17struct OverwriteAllStruct {};
18struct ReadWriteStruct {};
19
20// Tag indicating intent to read up-to-date data, but not modify.
21constexpr struct ReadOnlyStruct ReadOnly = ReadOnlyStruct();
22// Tag indicating intent to completely overwrite existing data.
23constexpr struct OverwriteAllStruct OverwriteAll = OverwriteAllStruct();
24// Tag indicating intent to both read up-to-date data and modify it.
25constexpr struct ReadWriteStruct ReadWrite = ReadWriteStruct();
26} // namespace Access
27} // namespace Tpetra
28
29#endif
Namespace Tpetra contains the class and methods constituting the Tpetra library.